mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-21 14:50:44 +01:00
[poincare] Fix bug in logarithm split integer
Change-Id: I6b65443262e07e6ae3cc79eb7e5ea0c5caed1a06
This commit is contained in:
@@ -153,7 +153,7 @@ Expression * Logarithm::splitInteger(Integer i, bool isDenominator, Context & co
|
||||
* - either it might be take too many factors... More than k_maxNumberOfPrimeFactors.
|
||||
* - Or, it might takes too much time */
|
||||
Expression * e = clone();
|
||||
e->replaceOperand(operand(0), new Rational(i), true);
|
||||
e->replaceOperand(e->operand(0), new Rational(i), true);
|
||||
if (!isDenominator) {
|
||||
return e;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user