-
Notifications
You must be signed in to change notification settings - Fork 16
Math module
rgsilva edited this page Dec 31, 2011
·
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