qc.hlp (Table of Contents; Topic list)
cabs
 Summary Example                         Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     The cabs function calculates the absolute value of a complex
     number, which must be a structure of type complex. The structure
     <z> is composed of a real component <x> and an imaginary component
     <y>. A call to cabs is equivalent to the following:
 
          sqrt( z.x * z.x + z.y * z.y )
 
     The cabsl function uses an 80-bit long double form of arguments
     and return values. In all other respects, it is identical to the
     cabs function.
 
     Return Value
 
     On overflow, these functions call matherr (or _matherrl), return
     HUGE_VAL, and set errno to ERANGE.
                                    -♦-