Clicky
Showing changes from revision #2 to #3:
(追記) Added (追記ここまで) | (削除) Removed (削除ここまで) | (削除) Chan (削除ここまで)(追記) ged (追記ここまで)
cos(x)
computes the cosine of x
.
FORTRAN 77 and later
result = cos(x)
x
- The type shall be real
or complex
. 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. (追記ここまで)
program test_cos
real :: x = 0.0
x = cos(x)
end program test_cos
(削除) Inverse function: (削除ここまで)acos (追記) , (追記ここまで)(追記) sin (追記ここまで)(追記) , (追記ここまで)(追記) tan (追記ここまで)