Math (dw::util::Math)
A utility module that provides mathematical functions.
To use this module, you must import it to your DataWeave code, for example,
by adding the line import * from dw::util::Math
to the header of your
DataWeave script.
Introduced in DataWeave version 2.4.0.
Functions
Name | Description |
---|---|
Returns an arc cosine value that can range from |
|
Returns an arc sine value that can range from |
|
Returns an arc tangent value that can range from |
|
Returns the trigonometric cosine of an angle from a given number of radians. |
|
Performs number addition with rounding specified by the operation context. |
|
Performs number division with rounding specified by the operation context. If precision is set to 0 (unlimited precision) and the result has an infinite decimal expansion, the function returns an error. |
|
Performs number multiplication with rounding specified by the operation context. |
|
Returns a number with value base^exponent with rounding specified by the operation context. The maximum value for exponent is 99999999. |
|
Returns the argument number with rounding specified by the operation context. |
|
Returns a number that approximates the square root of the argument with rounding specified by the operation context. |
|
Performs number subtraction with rounding specified by the operation context. |
|
Returns the logarithm base 10 of a number. |
|
Returns the natural logarithm (base |
|
Returns the trigonometric sine of an angle from a given number of radians. |
|
Returns the trigonometric tangent of an angle from a given number of radians. |
|
Converts an angle measured in radians to an approximately equivalent number of degrees. |
|
Converts a given number of degrees in an angle to an approximately equivalent number of radians. |