mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-26 09:10:48 +01:00
[poincare] Fix bug in power::simplify
Change-Id: I29b843a87d2fd4d6327e43c2fda06e5d47573b28
This commit is contained in:
@@ -151,7 +151,7 @@ void Power::immediateSimplify() {
|
||||
}
|
||||
// x^1
|
||||
if (b->isOne()) {
|
||||
replaceWith(new Rational(Integer(1), true));
|
||||
replaceWith(const_cast<Expression *>(operand(0)), true);
|
||||
return;
|
||||
}
|
||||
// p^q with p, q rationals
|
||||
|
||||
Reference in New Issue
Block a user