Calculate where is in degrees
real(real32) :: theta_r32 = 45 real(real64) :: theta_r64 = -45 print *, tand(theta_r32) ! = 1.000 print *, tand(theta_r64) ! = -1.000
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 |