mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-27 01:29:58 +01:00
[poincare] Fix bug in Multiplication::simplify
Change-Id: I32c3489507c92658bec2fe97ec159d9181965224
This commit is contained in:
@@ -140,7 +140,7 @@ void Multiplication::distributeOnChildAtIndex(int i) {
|
||||
}
|
||||
|
||||
const Expression * Multiplication::CreateExponent(Expression * e) {
|
||||
Expression * n = e->type() == Type::Power ? e->operand(1)->clone() : new Integer(1);
|
||||
Expression * n = e->type() == Type::Power ? e->operand(1)->clone() : new Rational(Integer(1));
|
||||
return n;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user