VMS Help  —  CPML  cpow()
    Interface

      F_COMPLEX cpow (F_TYPE a, F_TYPE b, F_TYPE c, F_TYPE d)

1  –  Description

    cpow() raises a complex base (a + ib) to a complex exponent (c +
    id).

    cpow(a,b,c,d) is defined as e**((c + id) ln(a + ib)).

                           Entry-Point Names

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

    cpow       S_FLOAT     math$cpow_s    cpowf
               T_FLOAT     math$cpow_t    cpow
               X_FLOAT     math$cpow_x    cpowl
               F_FLOAT     math$cpow_f
               G_FLOAT     math$cpow_g

2  –  Exceptions

    Exceptional Argument                Routine Behavior

    sqrt (a**2 + b**2) > max_float      Overflow
    c/2 * ln(a**2 + b**2) > max_float   Overflow
    c/2 * ln(a**2 + b**2) - (d *        Overflow
    atan2(b,c)) > max_float
    a=b=c=d=0                           Invalid argument

    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