[UP]


Manual Reference Pages  - cos (3)

NAME

cos(3f) - [FORTRAN:INTRINSIC:MATHEMATICS:TRIGONOMETRIC] Cosine function

SYNTAX

result = cos(x)

DESCRIPTION

cos(x) computes the cosine of X.

ARGUMENTS

X The type shall be REAL or COMPLEX.

RETURN VALUE

The return value is of the same type and kind as X. The real part of the result is in radians. If X is of the type REAL, the return value lies in the range -1 <= cos(x) <= 1.

EXAMPLE

Sample program:

    program demo_cos
    implicit none
    real :: x = 0.0
       x = cos(x)
    end program demo_cos

STANDARD

[[FORTRAN 77]] and later

CLASS

[[Elemental procedure|Elemental function]]

SEE ALSO

acos(3), sin(3), tan(3)


cos (3) March 11, 2021
Generated by manServer 1.08 from 151e03be-6d12-4981-b3a9-843e78540bea using man macros.