[poincare] A non defined symbol is not real

This fixes the equation "conj(x) * x +1", that should not be treated as
a polynom
This commit is contained in:
Léa Saviot
2019-03-28 10:20:42 +01:00
committed by Émilie Feral
parent a9e4737dea
commit 8b6fa5a79d

View File

@@ -74,7 +74,7 @@ Expression SymbolAbstract::Expand(const SymbolAbstract & symbol, Context & conte
bool SymbolAbstract::isReal(const SymbolAbstract & symbol, Context & context) {
Expression e = SymbolAbstract::Expand(symbol, context, false);
if (e.isUninitialized()) {
return true;
return false;
}
return e.isReal(context);
}