Clicky

Fortran Wiki
cos (changes)

Skip the Navigation Links | Home Page | All Pages | Recently Revised | Authors | Feeds | Export |

Showing changes from revision #3 to #4: (追記) Added (追記ここまで) | (削除) Removed (削除ここまで) | (削除) Chan (削除ここまで)(追記) ged (追記ここまで)

Description

cos(x) computes the cosine of x.

Standard

FORTRAN 77 and later

Class

Elemental function

Syntax

result = cos(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 (削除ここまで)(削除) \leq (削除ここまで)(削除) \cos (削除ここまで)(削除) (x) (削除ここまで)(削除) \leq (削除ここまで)(削除) 1. (削除ここまで)(追記) 1cos(x)1-1 \leq \cos (x) \leq 1 (追記ここまで)(追記) . (追記ここまで)

Example

program test_cos
 real :: x = 0.0
 x = cos(x)
end program test_cos

See also

acos, sin, tan

category: intrinsics

Revised on March 1, 2023 13:08:06 by Jason Blevins (23.245.217.121) (661 characters / 0.0 pages)
Edit | Back in time (3 revisions) | Hide changes | History | Views: Print | TeX | Source | Linked from: Intrinsic procedures, acos, sin, tan

AltStyle によって変換されたページ (->オリジナル) /