Mathematical Expression (Built-in Patch) in Numeric, Numeric

This patch executes a mathematical expression with variables.

The expression parser supports parenthesis to an arbitrary depth, the arithmetic operators ( +, -, *, /, %, ^), boolean operators (<, >, ==, !=, <=, >=, ?:), logical operators (&&, ||, ! ) and bitwise operators (&, |, !& (XOR), ~).

Constants may be expressed in either decimal, “12.345”, or scientific, “1.2345e1”, notation. Some predefined constants are provided: pi and e.

The parser also supports the following functions: sin(), cos(), tan(), asin(), acos(), atan(), atan2(), sinh(), cosh(), tanh(), exp(), ln(), log(), abs(), sqrt(), ceil(), floor(), min(), max() and rand().

Input Attributes
  • a
  • b
Output Attributes
  • Result - The result of the expression evaluation.
0 videos
0 comments
Bf9a01b6ccc05dea53134f59ff712fee