#include #include #include #include extern "C" { #include #include } namespace Poincare { int UndefinedNode::polynomialDegree(Context * context, const char * symbolName) const { return -1; } Expression UndefinedNode::setSign(Sign s, ExpressionNode::ReductionContext reductionContext) { assert(s == ExpressionNode::Sign::Positive || s == ExpressionNode::Sign::Negative); return Undefined(this); } Layout UndefinedNode::createLayout(Preferences::PrintFloatMode floatDisplayMode, int numberOfSignificantDigits) const { return LayoutHelper::String(Undefined::Name(), Undefined::NameSize()-1); } int UndefinedNode::serialize(char * buffer, int bufferSize, Preferences::PrintFloatMode floatDisplayMode, int numberOfSignificantDigits) const { return std::min(strlcpy(buffer, Undefined::Name(), bufferSize), bufferSize - 1); } template Evaluation UndefinedNode::templatedApproximate() const { return Complex::Undefined(); } template Evaluation UndefinedNode::templatedApproximate() const; template Evaluation UndefinedNode::templatedApproximate() const; }