VMS Help  —  CPML  ccos()
    Interface

      F_COMPLEX ccos (F_TYPE x, F_TYPE y)

1  –  Description

    ccos() returns the cosine of a complex number, x + iy.

    ccos(x,y) is defined as cos (x + iy) = (cos x * cosh y - i * sin
    x * sinh y).

                           Entry-Point Names

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

    ccos       S_FLOAT     math$ccos_s    ccosf
               T_FLOAT     math$ccos_t    ccos
               X_FLOAT     math$ccos_x    ccosl
               F_FLOAT     math$ccos_f
               G_FLOAT     math$ccos_g

2  –  Exceptions

    Exceptional Argument            Routine Behavior

    |x| = infinity                  Invalid argument
    (sin x sinh y) > max_float      Overflow
    (cos x cosh y) > 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