mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-24 16:20:49 +01:00
[poincare] Fix opposite
This commit is contained in:
@@ -44,7 +44,7 @@ public:
|
||||
int serialize(char * buffer, int bufferSize, Preferences::PrintFloatMode floatDisplayMode = Preferences::PrintFloatMode::Decimal, int numberOfSignificantDigits = 0) const override;
|
||||
|
||||
// Simplification
|
||||
Expression shallowReduce(Context& context, Preferences::AngleUnit angleUnit, const Expression futureParent = Expression()) override;
|
||||
Expression shallowReduce(Context& context, Preferences::AngleUnit angleUnit, const Expression futureParent) override;
|
||||
};
|
||||
|
||||
class Opposite : public Expression {
|
||||
|
||||
@@ -63,8 +63,8 @@ int OppositeNode::serialize(char * buffer, int bufferSize, Preferences::PrintFlo
|
||||
return numberOfChar;
|
||||
}
|
||||
|
||||
Expression OppositeNode::shallowReduce(Context& context, Preferences::AngleUnit angleUnit) {
|
||||
return Opposite(this).shallowReduce(context, angleUnit);
|
||||
Expression OppositeNode::shallowReduce(Context& context, Preferences::AngleUnit angleUnit, const Expression futureParent) {
|
||||
return Opposite(this).shallowReduce(context, angleUnit, futureParent);
|
||||
}
|
||||
|
||||
/* Simplification */
|
||||
|
||||
Reference in New Issue
Block a user