NuMath
A utility class that provides Nu access to common mathematical functions.
Superclass: NSObject
Declared in: objc/Nu.h
The NuMath class provides a few common mathematical functions as class methods.
Methods
Seed the random number generator.
in objc/Nu.h
| + |
(int) |
integerMod: |
(int) x |
|
by: |
(int) y |
Get the remainder of x divided by y as an integer
in objc/Nu.h
| + |
(int) |
integerDivide: |
(int) x |
|
by: |
(int) y |
Get the qouteint of x divided by y as an integer
in objc/Nu.h
| + |
(double) |
raiseNumber: |
(double) x |
|
toPower: |
(double) y |
Raise x to the power of y
in objc/Nu.h
| + |
(double) |
round: |
(double) x |
Get the integral value nearest to x by always rounding half-way cases away from zero.
in objc/Nu.h
| + |
(double) |
ceil: |
(double) x |
Get the smallest integral value that is greater than or equal to x.
in objc/Nu.h
| + |
(double) |
floor: |
(double) x |
Get the largest integral value that is not greater than x.
in objc/Nu.h
| + |
(double) |
sin: |
(double) x |
Get the sine of an angle.
in objc/Nu.h
| + |
(double) |
cos: |
(double) x |
Get the cosine of an angle.
in objc/Nu.h
| + |
(double) |
cbrt: |
(double) x |
Get the cubed root of a number.
in objc/Nu.h
| + |
(double) |
square: |
(double) x |
Get the square of a number.
in objc/Nu.h
| + |
(double) |
sqrt: |
(double) x |
Get the square root of a number.
in objc/Nu.h