tand Interface

public interface tand

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

Contents


Module Procedures

public elemental function tand_r32(theta) result(tand)

Single precision

Arguments

Type IntentOptional AttributesName
real(kind=real32), intent(in) :: theta

in degrees

Return Value real(kind=real32)

public elemental function tand_r64(theta) result(tand)

Double precision

Arguments

Type IntentOptional AttributesName
real(kind=real64), intent(in) :: theta

in degrees

Return Value real(kind=real64)