# MathFunctions class

Inheritance

MathFunctions()

## Properties

context
currentFileInfo
hashCode → int
The hash code for this object.
index ↔ int
less
name ↔ String
registry ↔ Map<String, FunctionRegistryItem>
Method registry: { 'externalName': {'name': internalName, 'listArguments': false} }
runtimeType → Type
A representation of the runtime type of the object.

## Methods

abs(Node n)
Calculates absolute value of a number. Keeps units as they are. [...]
acos(Node n)
Calculates arccosine (inverse of cosine) function. Returns number in radians e.g. a number between 0 and π. Parameters: number - a floating point number from `-1, 1` interval. Returns: number Example: acos(0.5403023058681398) Output: 1rad
asin(Node n)
Calculates arcsine (inverse of sine) function. Returns number in radians e.g. a number between -π/2 and π/2. [...]
atan(Node n)
Calculates arctangent (inverse of tangent) function. Returns number in radians e.g. a number between -π/2 and π/2. [...]
ceil(Node n)
Rounds up to the next highest integer. [...]
cos(Node n)
Calculates cosine function. Assumes radians on numbers without units. Parameters: number - a floating point number. Returns: number Example: cos(1deg) // cosine of 1 degree Output: 0.9998476951563913;
floor(Node n)
Rounds down to the next lowest integer. [...]
round(Node n, [ Node f ])
Applies rounding. [...]
sin(Node n)
Calculates sine function. Assumes radians on numbers without units. Parameters: number - a floating point number. Returns: number Example: sin(1deg); // sine of 1 degree Output: 0.01745240643728351;
sqrt(Node n)
Calculates square root of a number. Keeps units as they are. [...]
tan(Node n)
Calculates tangent function. Assumes radians on numbers without units. Parameters: number - a floating point number. Returns: number Example: tan(1deg) // tangent of 1 degree Output: 0.017455064928217585
call(List<Node> args) → dynamic
Call the last valid name of method
inherited
init(Contexts context, int index, FileInfo currentFileInfo) → void
Config functions with the necessarry information for processing
inherited
isValid(String name) → bool
Check if name is a method name available
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

## Operators

operator ==(dynamic other) → bool
The equality operator.
inherited