mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-24 00:00:44 +01:00
[poincare/matrix_id] If child not rational, return this in shallowRed
Example: matrix_identity(cosh(0))
This commit is contained in:
@@ -52,7 +52,7 @@ Expression MatrixIdentity::shallowReduce(ExpressionNode::ReductionContext reduct
|
||||
if (c.type() != ExpressionNode::Type::Rational
|
||||
|| !static_cast<Rational&>(c).isInteger())
|
||||
{
|
||||
return replaceWithUndefinedInPlace(); // TODO: are we sure?
|
||||
return *this;
|
||||
}
|
||||
Integer dimension = static_cast<Rational &>(c).signedIntegerNumerator();
|
||||
if (dimension.isNegative()) {
|
||||
|
||||
Reference in New Issue
Block a user