VMS Help  —  CPML  exp()
    Interface

      F_TYPE exp (F_TYPE x)

      F_TYPE expm1 (F_TYPE x)

1  –  Description

    exp() computes the value of the exponential function, defined
    as e**x, where e is the constant used as a base for natural
    logarithms.

    expm1() computes exp(x)-1 accurately, even for tiny x.

                           Entry-Point Names

    Generic
    Function   Data Type   OpenVMS        Tru64 UNIX
    Name       Required

    exp        S_FLOAT     math$exp_s     expf
               T_FLOAT     math$exp_t     exp
               X_FLOAT     math$exp_x     expl
               F_FLOAT     math$exp_f
               G_FLOAT     math$exp_g

    expm1      S_FLOAT     math$expm1_s   expm1f
               T_FLOAT     math$expm1_t   expm1
               X_FLOAT     math$expm1_x   expm1l
               F_FLOAT     math$expm1_f
               G_FLOAT     math$expm1_g

2  –  Exceptions

    Exceptional Argument   Routine Behavior

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

    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