[solver] Take into account the complexFormat Real

This commit is contained in:
Émilie Feral
2018-12-21 10:24:02 +01:00
committed by Léa Saviot
parent 6fd3a155df
commit aa80710f4d
5 changed files with 97 additions and 8 deletions

View File

@@ -43,6 +43,10 @@ Expression Equation::standardForm(Context * context) const {
return m_standardForm;
}
bool Equation::containsIComplex() const {
return strchr(text(), Ion::Charset::IComplex) != nullptr;
}
void Equation::tidyStandardForm() {
// Free the pool of the m_standardForm
m_standardForm = Expression();