[poincare] Implement real and shallowReduce of ComplexCartesian on nodes: conjugate, function, symbol

This commit is contained in:
Émilie Feral
2018-12-14 13:49:39 +01:00
committed by Léa Saviot
parent ced136f843
commit cbef3dadb9
8 changed files with 37 additions and 3 deletions

View File

@@ -14,6 +14,11 @@ ComplexCartesian FunctionNode::complexCartesian(Context & context, Preferences::
return SymbolAbstract::complexCartesian(f, context, angleUnit);
}
bool FunctionNode::isReal(Context & context, Preferences::AngleUnit angleUnit) const {
Function f(this);
return SymbolAbstract::isReal(f, context, angleUnit);
}
ComplexPolar FunctionNode::complexPolar(Context & context, Preferences::AngleUnit angleUnit) const {
Function f(this);
return SymbolAbstract::complexPolar(f, context, angleUnit);