Clicky

Fortran Wiki
cos (Rev #3, changes)

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

Showing changes from revision #2 to #3: (追記) 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 (追記ここまで)(削除) real (削除ここまで)(削除) and it lies in the range (削除ここまで)(削除) -1 \\leq \\cos (x) \\leq 1 (削除ここまで)(削除) . The kind type parameter is the same 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. (追記ここまで)

Example

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

See also

(削除) Inverse function: (削除ここまで)acos (追記) , (追記ここまで)(追記) sin (追記ここまで)(追記) , (追記ここまで)(追記) tan (追記ここまで)

category: intrinsics

Revision from September 19, 2010 10:20:09 by Jason Blevins
Forward in time (to current) | Back in time (2 more) | See current | Hide changes | History | Rollback | View: Source | Linked from: Intrinsic procedures, acos, sin, tan

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