mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-28 18:20:14 +01:00
[poincare] API Expression node v2
This commit is contained in:
@@ -147,7 +147,7 @@ public:
|
||||
virtual Evaluation<double> approximate(DoublePrecision p, Context& context, Preferences::AngleUnit angleUnit) const = 0;
|
||||
|
||||
/* Simplification */
|
||||
/*!*/ virtual Expression shallowReduce(Context & context, Preferences::AngleUnit angleUnit);
|
||||
/*!*/ virtual Expression shallowReduce(Context & context, Preferences::AngleUnit angleUnit, const Expression futureParent = Expression());
|
||||
/*!*/ virtual Expression shallowBeautify(Context & context, Preferences::AngleUnit angleUnit);
|
||||
/* Return a clone of the denominator part of the expression */
|
||||
/*!*/ virtual Expression denominator(Context & context, Preferences::AngleUnit angleUnit) const;
|
||||
|
||||
@@ -88,8 +88,8 @@ int ExpressionNode::simplificationOrderSameType(const ExpressionNode * e, bool c
|
||||
return 0;
|
||||
}
|
||||
|
||||
Expression ExpressionNode::shallowReduce(Context & context, Preferences::AngleUnit angleUnit) {
|
||||
return Expression(this).defaultShallowReduce(context, angleUnit);
|
||||
Expression ExpressionNode::shallowReduce(Context & context, Preferences::AngleUnit angleUnit, const Expression futureParent) {
|
||||
return Expression(this).defaultShallowReduce(context, angleUnit, futureParent);
|
||||
}
|
||||
|
||||
Expression ExpressionNode::shallowBeautify(Context & context, Preferences::AngleUnit angleUnit) {
|
||||
|
||||
Reference in New Issue
Block a user