-
Notifications
You must be signed in to change notification settings - Fork 16
Math module
muriloadriano edited this page Jan 1, 2012
·
2 revisions
List of implemented functions:
-
abs(Double x)- returns the absolute value of a number x -
abs(Int x)- returns the absolute value of a number x -
acos(Double x)- returns the arc cosine of an angle of x radians -
asin(Double x)- returns the arc sine of an angle of x radians -
atan(Double x)- returns the arc tangent of an angle of x radians -
ceil(Double x)- returns the smallest integral value that is not less than x -
cos(Double x)- returns the cosine of an angle of x radians -
floor(Double x)- returns the largest integral value that is not greater than x -
logb(Double x, Double base)- returns the logarithm of the value using the specified base -
loge(Double x)- returns the natural logarithm of the value -
log10(Double x)- returns the common (base 10) logarithm of the value -
max(Double x, Double y)- returns which value is greater, x or y -
max(Int x, Int y)- returns which value is greater, x or y -
min(Double x, Double y)- returns which value is smaller, x or y -
min(Int x, Int y)- returns which value is smaller, x or y -
pow(Double x, Double y)- returns x raised to the power y -
pow(Int x, Int y)- returns x raised to the power y -
round(Double x)- returns the rounded value of x -
sign(Double x)- returns a value indicating the sign of x -
sign(Int x)- returns a value indicating the sign of x -
sin(Double x)- returns the sine of an angle of x radians -
sqrt(Double x)- returns the square root of a number x -
tan(Double x)- returns the tangent of an angle of x radians -
truncate(Double x)- returns the value of x truncating the decimal part