VMS Help  —  CPML  pow()
    Interface

      F_TYPE pow (F_TYPE x, F_TYPE y)

1  –  Description

    pow() raises a floating-point base x to a floating-point exponent
    y. The value of pow(x,y) is computed as e**(y ln(x)) for positive
    x. If x is 0 or negative, see your language reference manual.

    Passing a NaN input value to pow() produces a NaN result for
    nonzero values of y. For pow(NaN,0), see your language reference
    manual.

                           Entry-Point Names

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

    pow        S_FLOAT     math$pow_ss    powf
               T_FLOAT     math$pow_tt    pow
               X_FLOAT     math$pow_xx    powl
               F_FLOAT     math$pow_ff
               G_FLOAT     math$pow_gg

2  –  Exceptions

    Exceptional Argument                     Routine Behavior

    y ln(x) > ln(max_float)                  Overflow
    y ln(x) < ln(min_float)                  Underflow

    Fortran-Exceptional Argument             Routine Behavior

    x < 0                                    Invalid argument
    x = 0 and y < 0                          Invalid argument
    x = 0 and y = 0                          Invalid argument
    x = +infinity and y = 0                  Invalid argument
    x = 1 and |y| = infinity                 Invalid argument

    ANSI C-Exceptional Argument              Routine Behavior

    |x| = 1 and |y| = infinity               Invalid argument
    x < 0 and y is not integral              Invalid argument

    Data
    Type  Value for: ln(max_float)

    F     Hexadecimal: 0F3443B0
    G     Hexadecimal: 7B616E3A28B740A6
    S     Hexadecimal: 42B17218
    T     Hexadecimal: 40862E42FEFA39EF
    X     Hexadecimal: 400C62E42FEFA39EF35793C7673007E6

    F     Decimal: 88.029692
    G     Decimal: 709.0895657128241
    S     Decimal: 88.7228391
    T     Decimal: 709.7827128933840
    X     Decimal: 11356.5234062941439494919310779707648912527

    Data
    Type  Value for: ln(min_float)

    F     Hexadecimal: 7218C3B1
    G     Hexadecimal: 39EFFEFA2E42C0A6
    S     Hexadecimal: C2CE8ED0
    T     Hexadecimal: C0874385446D71C3
    X     Hexadecimal: C00C6546282207802C89D24D65E96274

    F     Decimal: -88.72284
    G     Decimal: -709.7827128933840
    S     Decimal: -103.2789
    T     Decimal: -744.4400719213813
    X     Decimal: -11432.7695961557379335278266113311643138373
Close Help