Calculate where is in degrees
real(real32) :: theta_r32 = 90 real(real64) :: theta_r64 = 60 print *, cosd(theta_r32) ! = 0.000 print *, cosd(theta_r64) ! = 0.500
Single precision
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real32), | intent(in) | :: | theta | in degrees |
Double precision
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real64), | intent(in) | :: | theta | in degrees |