mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[poincare/expression_node] Fix ExpresssionNode::Type ordering
A Multiplication whose children are all real or ComplexCartesian are multiplied to form a single ComplexCartesian. That step of shallowReduce assumed that the last child is a ComplexCartesian. Since a Unit is now considered as real, the previous assumption can be maintained be reordering the ExpresssionNode::Type.
This commit is contained in:
committed by
Léa Saviot
parent
4a6b633c74
commit
e39ad9d923
@@ -95,6 +95,7 @@ public:
|
||||
Subtraction,
|
||||
Sum,
|
||||
|
||||
Unit,
|
||||
ComplexCartesian,
|
||||
|
||||
ConfidenceInterval,
|
||||
@@ -104,7 +105,6 @@ public:
|
||||
MatrixTranspose,
|
||||
PredictionInterval,
|
||||
Matrix,
|
||||
Unit,
|
||||
EmptyExpression
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user