[poincare] Implement shallowReduce of ComplexArgument, AbsoluteValue,

RealPart and ImaginaryPart
This commit is contained in:
Émilie Feral
2018-12-07 16:51:15 +01:00
committed by Léa Saviot
parent 2f8ede54f2
commit 64aebcf16d
11 changed files with 44 additions and 28 deletions

View File

@@ -109,7 +109,7 @@ Expression ExpressionNode::complexArgument(Context & context, Preferences::Angle
Multiplication(
SignFunction::Builder(b).shallowReduce(context, angleUnit),
Division(Constant(Ion::Charset::SmallPi), Rational(2)).shallowReduce(context, angleUnit, ReductionTarget::BottomUpComputation)
),
).shallowReduce(context, angleUnit, ReductionTarget::BottomUpComputation),
arcTangent
).shallowReduce(context, angleUnit, ReductionTarget::BottomUpComputation);
} else {