mirror of
https://github.com/aportelli/LatAnalyze.git
synced 2024-11-10 00:45:36 +00:00
Math interpreter: added inf as a constant
This commit is contained in:
parent
9e8021d7d7
commit
80b826040b
@ -690,6 +690,7 @@ void MathInterpreter::compile(RunContext &context)
|
||||
if (root_)
|
||||
{
|
||||
context.addVariable("pi", Math::pi);
|
||||
context.addVariable("inf", HUGE_VAL);
|
||||
ADD_STDMATH_FUNCS(context);
|
||||
root_->compile(program_, context);
|
||||
for (unsigned int i = 0; i < program_.size(); ++i)
|
||||
|
Loading…
Reference in New Issue
Block a user