class EEEval::MathFuncResolver
- EEEval::MathFuncResolver
- Reference
- Object
Defined in:
eval/math_func_resolver.crClass Method Summary
- .evaluate(expression)
-
.resolve(expression)
Transform an expression with math function if the argument is a number e.g.: cos(3) is translated to Math.cos(3)
-
.resolve_expr(expression)
Transform an expression inside a math function e.g.: cos(3+1) matches in (3+1) then (3+1) is evauated to 4 and the expression is translated to Math.cos(4)
- .resolved?(expression)
- .search_expr(expression)
Macro Summary
Class Method Detail
def self.resolve(expression)
#
Transform an expression with math function if the argument is a number e.g.: cos(3) is translated to Math.cos(3)
def self.resolve_expr(expression)
#
Transform an expression inside a math function e.g.: cos(3+1) matches in (3+1) then (3+1) is evauated to 4 and the expression is translated to Math.cos(4)