XL Fortran for AIX 8.1

Language Reference


COS(X)

Cosine function.

X
must be of type real or complex.

Class

Elemental function

Result Type and Attributes

Same as X.

Result Value

Examples

COS (1.0) has the value 0.54030231 (approximately).


Specific Name Argument Type Result Type Pass As Arg?
COS default real default real yes
DCOS double precision real double precision real yes
QCOS (1) REAL(16) REAL(16) yes
CCOS (2a) default complex default complex yes
CDCOS (1) (2b) double complex double complex yes
ZCOS (1) (2b) double complex double complex yes
CQCOS (1) (2b) COMPLEX(16) COMPLEX(16) yes

Notes:

  1. IBM Extension.

  2. Given that X is a complex number in the form a + bi, where i = (-1)½:
    1. abs(b) must be less than or equal to 88.7228; a is any real value.
    2. abs(b) must be less than or equal to 709.7827; a is any real value.

  3. Given that X is a complex number in the form a + bi, where i = (-1)½,


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]