#include #include extern "C" { #include } #include namespace Poincare { ReelPart::ReelPart() : Function("re") { } Expression::Type ReelPart::type() const { return Type::ReelPart; } Expression * ReelPart::cloneWithDifferentOperands(Expression** newOperands, int numberOfOperands, bool cloneOperands) const { assert(newOperands != nullptr); ReelPart * rp = new ReelPart(); rp->setArgument(newOperands, numberOfOperands, cloneOperands); return rp; } template Complex ReelPart::templatedComputeComplex(const Complex c) const { return Complex::Float(c.a()); } }