math Module
abs
num1 ⇒ num2
Calculates tbe absolute value of num1.
acos
num1 ⇒ num2
Calculates the arc cosine of num1 (in radians).
asin
num1 ⇒ num2
Calculates the arc sine of num1 (in radians).
atan
num1 ⇒ num2
Calculates the arc tangent of num1 (in radians).
ceil
num ⇒ int
Returns the smallest integer int that is not smaller than num.
cos
num1 ⇒ num2
Calculates the cosine of num1 (in radians).
cosh
num1 ⇒ num2
Calculates the hyperbolic cosine of num1 (in radians).
d2r
num1 ⇒ num2
Converts num1 from degrees to radians.
e
∅ ⇒ num
Returns the value of the e constant (Euler’s number).
floor
num ⇒ int
Returns the largest integer int that is not greater than num.
ln
num1 ⇒ num2
Calculates the natural logarithm of num1.
log10
num1 ⇒ num2
Calculates the common logarithm of num1.
log2
num1 ⇒ num2
Calculates the binary logarithm of num1.
pi
∅ ⇒ num
Returns the value of the π constant.
pow
num1 num2 ⇒ num3
Computes num1 to power raised of num2.
r2d
num1 ⇒ num2
Converts num1 from radians to degrees.
round
num1 int ⇒ num2
Rounds num1 to the intth decimal place.
sin
num1 ⇒ num2
Calculates the sine of num1 (in radians).
sinh
num1 ⇒ num2
Calculates the hyperbolic sine of num1 (in radians).
sqrt
num1 ⇒ num2
Returns square root of num1.
tan
num1 ⇒ num2
Calculates the tangent of num1 (in radians).
tanh
num1 ⇒ num2
Calculates the hyperbolic tangent of num1 (in radians).
tau
∅ ⇒ num
Returns the value of the τ constant (2π).
trunc
num1 ⇒ num2
Truncates num to the decimal point.