Clicky

Fortran Wiki
cos (Rev #2, changes)

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

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

Description

cos(x) computes the cosine of x.

Standard

(削除) Fortran 77 and later (削除ここまで)(追記) FORTRAN 77 (追記ここまで)(追記) and later (追記ここまで)

Class

(削除) Elemental function (削除ここまで)(追記) Elemental function (追記ここまで)

Syntax

result = cos(x)

Arguments

  • x - The type shall be real or complex.

Return value

The return value is of type real and it lies in the range -1 \\leq \\cos (x) \\leq 1. The kind type parameter is the same as x.

Example

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

See also

Inverse function: acos

category: (削除) Intrinsics (削除ここまで)(追記) intrinsics (追記ここまで)

Revision from April 30, 2009 22:38:59 by Jason Blevins
Forward in time (2 more) | Back in time (1 more) | See current | Hide changes | History | Rollback | View: Source | Linked from: Intrinsic procedures, acos, sin, tan

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