mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-19 05:40:38 +01:00
[poincare/multiplication] Use mergeChildrenAtIndexInPlace instead of mergeMultiplicationChildrenInPlace
This commit is contained in:
committed by
Émilie Feral
parent
4558e777c8
commit
43327e482e
@@ -831,7 +831,7 @@ void Multiplication::mergeInChildByFactorizingBase(int i, Expression e, Expressi
|
||||
* ie: 12^(1/2) -> 2*3^(1/2). In that case, we need to merge the multiplication
|
||||
* node with this. */
|
||||
if (p.type() == ExpressionNode::Type::Multiplication) {
|
||||
mergeMultiplicationChildrenInPlace();
|
||||
mergeChildrenAtIndexInPlace(p, i);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -852,7 +852,7 @@ void Multiplication::factorizeExponent(int i, int j, ExpressionNode::ReductionCo
|
||||
* ie: 12^(1/2) -> 2*3^(1/2). In that case, we need to merge the multiplication
|
||||
* node with this. */
|
||||
if (p.type() == ExpressionNode::Type::Multiplication) {
|
||||
mergeMultiplicationChildrenInPlace();
|
||||
mergeChildrenAtIndexInPlace(p, i);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user