VMS Help  —  CPML  cabs()
    Interface

      F_TYPE cabs (F_TYPE x, F_TYPE y)

1  –  Description

    cabs(x,y) is defined as the square root of (x**2 + y**2) and
    returns the same value as hypot(x,y).

                           Entry-Point Names

    Generic                               Compaq
    Function   Data Type   OpenVMS        Tru64 UNIX
    Name       Required    Alpha          Alpha

    cabs       S_FLOAT     math$hypot_s   cabsf
               T_FLOAT     math$hypot_t   cabs
               X_FLOAT     math$hypot_x   cabsl
               F_FLOAT     math$hypot_f
               G_FLOAT     math$hypot_g

2  –  Exceptions

    Exceptional Argument            Routine Behavior

    sqrt(x**2 + y**2) > max_float   Overflow

    Data
    Type  Value for: max_float

    F     Hexadecimal: FFFF7FFF
    G     Hexadecimal: FFFFFFFFFFFF7FFF
    S     Hexadecimal: 7F7FFFFF
    T     Hexadecimal: 7FEFFFFFFFFFFFFF
    X     Hexadecimal: 7FFEFFFFFFFFFFFFFFFFFFFFFFFFFFFF

    F     Decimal: 1.701411e38
    G     Decimal: 8.988465674311579e307
    S     Decimal: 3.402823e38
    T     Decimal: 1.797693134862316e308
    X     Decimal: 1.189731495357231765085759326628007016196477e4932
Close Help