foreng_math_trig Module

Trigonometric functions defined for inputs whose units are degrees instead of radians.


Uses


Contents


Interfaces

public interface sind

Calculate where is in degrees

Read more…
  • public elemental function sind_r32(theta) result(sind)

    Single precision

    Arguments

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

    in degrees

    Return Value real(kind=real32)

  • public elemental function sind_r64(theta) result(sind)

    Double precision

    Arguments

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

    in degrees

    Return Value real(kind=real64)

public interface cosd

Calculate where is in degrees

Read more…
  • public elemental function cosd_r32(theta) result(cosd)

    Single precision

    Arguments

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

    in degrees

    Return Value real(kind=real32)

  • public elemental function cosd_r64(theta) result(cosd)

    Double precision

    Arguments

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

    in degrees

    Return Value real(kind=real64)

public interface tand

Calculate where is in degrees

Read more…
  • 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)

public interface asind

Calculate and return in degrees

Read more…
  • public elemental function asind_r32(x) result(theta)

    Single precision

    Arguments

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

    Return Value real(kind=real32)

    in degrees

  • public elemental function asind_r64(x) result(theta)

    Double precision

    Arguments

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

    Return Value real(kind=real64)

    in degrees

public interface acosd

Calculate and return in degrees

Read more…
  • public elemental function acosd_r32(x) result(theta)

    Single precision

    Arguments

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

    Return Value real(kind=real32)

    in degrees

  • public elemental function acosd_r64(x) result(theta)

    Double precision

    Arguments

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

    Return Value real(kind=real64)

    in degrees

public interface atand

Calculate and return in degrees

Read more…
  • public elemental function atand_r32(x) result(theta)

    Single precision

    Arguments

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

    Return Value real(kind=real32)

    in degrees

  • public elemental function atand_r64(x) result(theta)

    Double precision

    Arguments

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

    Return Value real(kind=real64)

    in degrees

public interface sinhd

  • public elemental function sinhd_r32(theta) result(sinhd)

    Single precision

    Arguments

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

    in degrees

    Return Value real(kind=real32)

  • public elemental function sinhd_r64(theta) result(sinhd)

    Double precision

    Arguments

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

    in degrees

    Return Value real(kind=real64)

public interface coshd

  • public elemental function coshd_r32(theta) result(coshd)

    Single precision

    Arguments

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

    in degrees

    Return Value real(kind=real32)

  • public elemental function coshd_r64(theta) result(coshd)

    Double precision

    Arguments

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

    in degrees

    Return Value real(kind=real64)

public interface tanhd

  • public elemental function tanhd_r32(theta) result(tanhd)

    Single precision

    Arguments

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

    in degrees

    Return Value real(kind=real32)

  • public elemental function tanhd_r64(theta) result(tanhd)

    Double precision

    Arguments

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

    in degrees

    Return Value real(kind=real64)

public interface deg_to_rad

Convert from degrees to radians

  • public elemental function deg_to_rad_r32(degrees) result(radians)

    Arguments

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

    Return Value real(kind=real32)

  • public elemental function deg_to_rad_r64(degrees) result(radians)

    Arguments

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

    Return Value real(kind=real64)

public interface rad_to_deg

Conver from radians to degrees

  • public elemental function rad_to_deg_r32(radians) result(degrees)

    Arguments

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

    Return Value real(kind=real32)

  • public elemental function rad_to_deg_r64(radians) result(degrees)

    Arguments

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

    Return Value real(kind=real64)


Functions

public elemental function sind_r32(theta) result(sind)

Single precision

Arguments

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

in degrees

Return Value real(kind=real32)

public elemental function sind_r64(theta) result(sind)

Double precision

Arguments

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

in degrees

Return Value real(kind=real64)

public elemental function cosd_r32(theta) result(cosd)

Single precision

Arguments

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

in degrees

Return Value real(kind=real32)

public elemental function cosd_r64(theta) result(cosd)

Double precision

Arguments

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

in degrees

Return Value real(kind=real64)

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)

public elemental function asind_r32(x) result(theta)

Single precision

Arguments

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

Return Value real(kind=real32)

in degrees

public elemental function asind_r64(x) result(theta)

Double precision

Arguments

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

Return Value real(kind=real64)

in degrees

public elemental function acosd_r32(x) result(theta)

Single precision

Arguments

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

Return Value real(kind=real32)

in degrees

public elemental function acosd_r64(x) result(theta)

Double precision

Arguments

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

Return Value real(kind=real64)

in degrees

public elemental function atand_r32(x) result(theta)

Single precision

Arguments

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

Return Value real(kind=real32)

in degrees

public elemental function atand_r64(x) result(theta)

Double precision

Arguments

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

Return Value real(kind=real64)

in degrees

public elemental function sinhd_r32(theta) result(sinhd)

Single precision

Arguments

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

in degrees

Return Value real(kind=real32)

public elemental function sinhd_r64(theta) result(sinhd)

Double precision

Arguments

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

in degrees

Return Value real(kind=real64)

public elemental function coshd_r32(theta) result(coshd)

Single precision

Arguments

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

in degrees

Return Value real(kind=real32)

public elemental function coshd_r64(theta) result(coshd)

Double precision

Arguments

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

in degrees

Return Value real(kind=real64)

public elemental function tanhd_r32(theta) result(tanhd)

Single precision

Arguments

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

in degrees

Return Value real(kind=real32)

public elemental function tanhd_r64(theta) result(tanhd)

Double precision

Arguments

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

in degrees

Return Value real(kind=real64)

public elemental function deg_to_rad_r32(degrees) result(radians)

Arguments

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

Return Value real(kind=real32)

public elemental function deg_to_rad_r64(degrees) result(radians)

Arguments

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

Return Value real(kind=real64)

public elemental function rad_to_deg_r32(radians) result(degrees)

Arguments

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

Return Value real(kind=real32)

public elemental function rad_to_deg_r64(radians) result(degrees)

Arguments

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

Return Value real(kind=real64)