... | @@ -31,35 +31,35 @@ Functions |
... | @@ -31,35 +31,35 @@ Functions |
|
---------
|
|
---------
|
|
Most of these functions can be found here https://www.objecthunter.net/exp4j/#Built-in_functions
|
|
Most of these functions can be found here https://www.objecthunter.net/exp4j/#Built-in_functions
|
|
|
|
|
|
| Functions | Example |
|
|
| Function | Description |
|
|
|:----------------------------------------------------------------|:----------------:|
|
|
|:----------------:|:----------------------------------------------------------------|
|
|
| the absolute value of (x) | abs(x) |
|
|
| abs(x) | the absolute value of (x) |
|
|
| arc cosine | acos(x) |
|
|
| acos(x) | arc cosine |
|
|
| arc sine | asin(x) |
|
|
| asin(x) | arc sine |
|
|
| arc tangent | atan(x) |
|
|
| atan(x) | arc tangent |
|
|
| cubic root | cbrt(x) |
|
|
| cbrt(x) | cubic root |
|
|
| nearest upper integer | ceil(x) |
|
|
| ceil(x) | nearest upper integer |
|
|
| cosine | cos(x) |
|
|
| cos(x) | cosine |
|
|
| hyperbolic cosecant | csch(x) |
|
|
| csch(x) | hyperbolic cosecant |
|
|
| euler's number raised to the power (e^x) | exp(x) |
|
|
| exp(x) | euler's number raised to the power (e^x) |
|
|
| nearest lower integer | floor(x) |
|
|
| floor(x) | nearest lower integer |
|
|
| logarithmus naturalis (base e) | log(x) |
|
|
| log(x) | logarithmus naturalis (base e) |
|
|
| logarithm to base 2 | log2(x) |
|
|
| log2(x) | logarithm to base 2 |
|
|
| logarithm to base 10 | log10(x) |
|
|
| log10(x) | logarithm to base 10 |
|
|
| logarithm to base b | logb(x) |
|
|
| logb(x) | logarithm to base b |
|
|
| secant | sec(x) |
|
|
| sec(x) | secant |
|
|
| hyperbolic secant | sech(x) |
|
|
| sech(x) | hyperbolic secant |
|
|
| sine | sin(x) |
|
|
| sin(x) | sine |
|
|
| hyperbolic sine | sinh(x) |
|
|
| sinh(x) | hyperbolic sine |
|
|
| square root | sqrt(x) |
|
|
| sqrt(x) | square root |
|
|
| tangent | tan(x) |
|
|
| tan(x) | tangent |
|
|
| hyperbolic tangent | tanh(x) |
|
|
| tanh(x) | hyperbolic tangent |
|
|
| signum of a value | signum(x) |
|
|
| signum(x) | signum of a value |
|
|
| converts from degrees to radians | toradian(x) |
|
|
| toradian(x) | converts from degrees to radians |
|
|
| converts from radians to degrees | todegree(x) |
|
|
| todegree(x) | converts from radians to degrees |
|
|
| minimum | min(x, y) |
|
|
| min(x, y) | minimum |
|
|
| maximum | max(x, y) |
|
|
| max(x, y) | maximum |
|
|
| principal value of the arc tangent of y/x, expressed in radians | atan2(y, x) |
|
|
| atan2(y, x) | principal value of the arc tangent of y/x, expressed in radians |
|
|
| random with limits | random(min, max) |
|
|
| random(min, max) | random with limits |
|
|
|
|
|
|
NOTE: You can request to add more operators and functions by making a suggestion ticket in our [issues page](https://git.mythiccraft.io/mythiccraft/MythicMobs/-/issues) |
|
NOTE: You can request to add more operators and functions by making a suggestion ticket in our [issues page](https://git.mythiccraft.io/mythiccraft/MythicMobs/-/issues) |
|
|
|
\ No newline at end of file |