mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[poincare] Redesign of Expression: first attempt
This commit is contained in:
@@ -40,7 +40,7 @@ Expression * Equation::standardForm(Context * context) const {
|
||||
m_standardForm = static_cast<const Equal *>(e)->standardEquation(*context, Preferences::sharedPreferences()->angleUnit());
|
||||
} else if (e->type() == Expression::Type::Rational && static_cast<Rational *>(e)->isOne()) {
|
||||
// The equality was reduced which means the equality was always true.
|
||||
m_standardForm = new Rational(0);
|
||||
m_standardForm = RationalReference(0);
|
||||
} else {
|
||||
// The equality has an undefined operand
|
||||
assert(e->type() == Expression::Type::Undefined);
|
||||
|
||||
Reference in New Issue
Block a user