[UP]


Manual Reference Pages  - cos (3)

NAME

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

CONTENTS

Syntax
Description
Arguments
Return Value
Example
Standard
Class
See Also

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
     real :: x = 0.0
     x = cos(x)
   end program demo_cos

STANDARD

[[FORTRAN 77]] and later

CLASS

[[Elemental procedure|Elemental function]]

SEE ALSO

[[acos]], [[sin]], [[tan]]


cos (3) March 18, 2019
Generated by manServer 1.08 from eb0d82ec-106d-4d9d-beae-7c6e72bb6eef using man macros.