mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[poincare/multiplication] Fix comment
This commit is contained in:
@@ -697,7 +697,7 @@ Expression Multiplication::privateShallowReduce(ExpressionNode::ReductionContext
|
||||
shouldExpand = false;
|
||||
} else if (c.type() != ExpressionNode::Type::Rational) {
|
||||
} else if (static_cast<const Rational &>(c).isZero()) {
|
||||
// Check that other children don't match inf or unit
|
||||
// Check that other children don't match inf or matrix
|
||||
if (!recursivelyMatches([](const Expression e, Context * context) { return IsInfinity(e, context) || IsMatrix(e, context); }, context)) {
|
||||
replaceWithInPlace(c);
|
||||
return c;
|
||||
|
||||
Reference in New Issue
Block a user