solarex v0.1.1 Solarex.Math View Source
Solarex.Math module represents mathematical functions used in Solarex.Sun module.
Link to this section Summary
Functions
See :math.acos/1
.
See :math.asin/1
.
See :math.cos/1
.
Calculates degrees from radians
Calculates the remainder after division of x by y
See :math.pi/0
.
See :math.pow/2
.
Calculates radians from degrees
See :math.sin/1
.
See :math.tan/1
.
Link to this section Functions
Link to this function
acos(x) View Source
See :math.acos/1
.
Link to this function
asin(x) View Source
See :math.asin/1
.
Link to this function
cos(x) View Source
See :math.cos/1
.
Link to this function
degrees(radians) View Source
Calculates degrees from radians
iex> Solarex.Math.degrees(1)
57.29577951308232
Link to this function
modulo(x, y) View Source
Calculates the remainder after division of x by y
iex> Solarex.Math.modulo(19, 3)
1.0
See :math.pi/0
.
Link to this function
pow(x, y) View Source
See :math.pow/2
.
Link to this function
radians(degrees) View Source
Calculates radians from degrees
iex> Solarex.Math.radians(57.295779513082321)
1.0
Link to this function
sin(x) View Source
See :math.sin/1
.
Link to this function
tan(x) View Source
See :math.tan/1
.