mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-26 17:20:53 +01:00
[poincare] Bug Product([1 1], 1, 3): if the intermediate result is
nullptr, escape the evaluation and return an undefined expression
This commit is contained in:
committed by
LeaNumworks
parent
f2d096be63
commit
2bd93844cd
@@ -43,6 +43,9 @@ Expression * Sequence::templatedApproximate(Context& context, AngleUnit angleUni
|
||||
delete result;
|
||||
delete expression;
|
||||
result = newResult;
|
||||
if (result == nullptr) {
|
||||
return new Complex<T>(Complex<T>::Float(NAN));
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user