solarex v0.1.2 Solarex.Math View Source

Solarex.Math module represents mathematical functions used in Solarex.Sun module.

Link to this section Summary

Functions

Calculates degrees from radians

Calculates the remainder after division of x by y

Calculates radians from degrees

Link to this section Functions

See :math.acos/1.

See :math.asin/1.

See :math.cos/1.

Link to this function

degrees(radians) View Source
degrees(number()) :: float()

Calculates degrees from radians

iex> Solarex.Math.degrees(1)
57.29577951308232

Calculates the remainder after division of x by y

iex> Solarex.Math.modulo(19, 3)
1.0

See :math.pi/0.

See :math.pow/2.

Link to this function

radians(degrees) View Source
radians(number()) :: float()

Calculates radians from degrees

iex> Solarex.Math.radians(57.295779513082321)
1.0

See :math.sin/1.

See :math.tan/1.