mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-22 15:20:39 +01:00
[poincare] Enable to call method on undefined Expression
This commit is contained in:
@@ -220,8 +220,11 @@ Expression Expression::deepBeautify(Context & context, Preferences::AngleUnit an
|
||||
|
||||
template<typename U>
|
||||
Expression Expression::approximate(Context& context, Preferences::AngleUnit angleUnit, Preferences::Preferences::ComplexFormat complexFormat) const {
|
||||
Evaluation<U> e = node()->approximate(U(), context, angleUnit);
|
||||
return e->complexToExpression(complexFormat);
|
||||
if (isDefined()) {
|
||||
Evaluation<U> e = node()->approximate(U(), context, angleUnit);
|
||||
return e->complexToExpression(complexFormat);
|
||||
}
|
||||
return Undefined();
|
||||
}
|
||||
|
||||
template<typename U>
|
||||
|
||||
Reference in New Issue
Block a user