VMS Help  —  CPML
    sqrt() computes the rounded square root of x.

    For platforms supporting a signed zero, sqrt(-0) = 0.

                           Entry-Point Names

    Generic
    Function   Data Type   OpenVMS        Tru64 UNIX
    Name       Required

    sqrt       S_FLOAT     math$sqrt_s    sqrtf
               T_FLOAT     math$sqrt_t    sqrt
               X_FLOAT     math$sqrt_x    sqrtl
               F_FLOAT     math$sqrt_f
               G_FLOAT     math$sqrt_g

50.2  –  Exceptions

    Exceptional Argument   Routine Behavior

    x < 0                  Invalid argument

51  –  tan()

    Interface

      F_TYPE tan (F_TYPE x)

      F_TYPE tand (F_TYPE x)

51.1  –  Description

    tan() computes the tangent of x, measured in radians.

    tand() computes the tangent of x, measured in degrees.

                           Entry-Point Names

    Generic
    Function   Data Type   OpenVMS        Tru64 UNIX
    Name       Required

    tan        S_FLOAT     math$tan_s     tanf
               T_FLOAT     math$tan_t     tan
               X_FLOAT     math$tan_x     tanl
               F_FLOAT     math$tan_f
               G_FLOAT     math$tan_g

    tand       S_FLOAT     math$tand_s    tandf
               T_FLOAT     math$tand_t    tand
               X_FLOAT     math$tand_x    tandl
               F_FLOAT     math$tand_f
               G_FLOAT     math$tand_g

51.2  –  Exceptions

    Exceptional Argument                  Routine Behavior

    |x| = infinity                        Invalid argument
    (tand) |x| < (180/pi) * min_float     Underflow
    (tand) x = (2n+1) * 90                Overflow

    Data
    Type  Value for: (180/pi) * min_float

    F     Hexadecimal: 2EE10365
    G     Hexadecimal: C1F81A63A5DC006C
    S     Hexadecimal: 00000039
    T     Hexadecimal: 0000000000000039
    X     Hexadecimal: 00000000000000000000000000000039

    F     Decimal: 1.683772e-37
    G     Decimal: 3.187183529933798e-307
    S     Decimal: 8.028849e-44
    T     Decimal: 2.830787630910868e-322
    X     Decimal: 3.71000205951917569316937757202433432154392e-4964

52  –  tanh()

    Interface

      F_TYPE tanh (F_TYPE x)

52.1  –  Description

    tanh() computes the hyperbolic tangent of x.

    tanh(x) is defined as (exp(x)-exp(-x))/(exp(x) + exp(-x)).

                           Entry-Point Names

    Generic
    Function   Data Type   OpenVMS        Tru64 UNIX
    Name       Required

    tanh       S_FLOAT     math$tanh_s    tanhf
               T_FLOAT     math$tanh_t    tanh
               X_FLOAT     math$tanh_x    tanhl
               F_FLOAT     math$tanh_f
               G_FLOAT     math$tanh_g

52.2  –  Exceptions

    None.

53  –  trunc()

    Interface

      F_TYPE trunc (F_TYPE x)

53.1  –  Description

    trunc() truncates x to an integral value.

                           Entry-Point Names

    Generic
    Function   Data Type   OpenVMS        Tru64 UNIX
    Name       Required

    trunc      S_FLOAT     math$trunc_s   truncf
               T_FLOAT     math$trunc_t   trunc
               X_FLOAT     math$trunc_x   truncl
               F_FLOAT     math$trunc_f
               G_FLOAT     math$trunc_g

53.2  –  Exceptions

    None.

54  –  unordered()

    Interface

      int unordered (F_TYPE x, F_TYPE y)

54.1  –  Description

    unordered(x,y) returns the value 1 (true) if x, y, or both are a
    NaN and returns the value 0 (false) otherwise.

                           Entry-Point Names

    Generic
    Function   Data Type   OpenVMS                Tru64 UNIX
    Name       Required

    unordered  S_FLOAT     math$unordered_s       unorderedf
               T_FLOAT     math$unordered_t       unordered
               X_FLOAT     math$unordered_x       unorderedl
               F_FLOAT     math$unordered_f
               G_FLOAT     math$unordered_g

54.2  –  Exceptions

    None.
Close Help