pashmak

Module math

math.acos

Return the arc cosine of different numbers. Recives a number between 1 and -1.

import @math

println(math.aocs(0.65))
println(math.aocs(1))
println(math.aocs(0.134))

math.acosh

Return the inverse hyperbolic cosine of different numbers.

println(math.acosh(123))

math.ceil

Round a number upward to its nearest integer.

println(math.ceil(1.4))
println(math.ceil(5.3))
println(math.ceil(-5.3))
println(math.ceil(22.6))
println(math.ceil(10.0)) 

math.cos

Find the cosine of different numbers.

println(math.cos(0.00))
println(math.cos(-1.23))
println(math.cos(10))
println(math.cos(3.14159265359)) 

math.degrees

Convert angles from radians to degrees.

println(math.degrees(8.90))
println(math.degrees(-20))
println(math.degrees(1))
println(math.degrees(90)) 

math.factorial

Find the factorial of a number.

println(math.factorial(9))
println(math.factorial(6))
println(math.factorial(12)) 

math.floor

Round numbers down to the nearest integer.

println(math.floor(0.6))
println(math.floor(1.4))
println(math.floor(5.3))
println(math.floor(-5.3))
println(math.floor(22.6))
println(math.floor(10.0)) 

math.pow

Find the value of 9 raised to the power of 3:

println(math.pow(9, 3))

math.sin

Find the sine of different numbers.

println(math.sin(0.00))
println(math.sin(-1.23))
println(math.sin(10))
println(math.sin($math.pi))
println(math.sin($math.pi/2)) 

math.tan

Find the tangent of different numbers (angles).

println(math.tan(90))
println(math.tan(-90))
println(math.tan(45))
println(math.tan(60)) 
this page is provided from w3schools