mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-21 23:00:45 +01:00
[poicnare] Clean
This commit is contained in:
@@ -140,95 +140,6 @@ private:
|
||||
double brentRoot(char symbol, double ax, double bx, double precision, EvaluationAtAbscissa evaluation, Context & context, Preferences::AngleUnit angleUnit, const ExpressionReference expression) const;
|
||||
};
|
||||
|
||||
|
||||
|
||||
/*
|
||||
class UndefinedNode : public ExpressionNode {
|
||||
public:
|
||||
// ExpressionNode
|
||||
Type type() const override { return Type::Undefined; }
|
||||
EvaluationReference<float> approximate(SinglePrecision p, Context& context, Preferences::AngleUnit angleUnit) const override { return Complex<float>::Undefined().storeEvaluation(); }
|
||||
EvaluationReference<double> approximate(DoublePrecision p, Context& context, Preferences::AngleUnit angleUnit) const override { return Complex<double>::Undefined().storeEvaluation(); }
|
||||
LayoutRef createLayout(Preferences::PrintFloatMode floatDisplayMode, int numberOfSignificantDigits) const override;
|
||||
int writeTextInBuffer(char * buffer, int bufferSize, Preferences::PrintFloatMode floatDisplayMode = Preferences::PrintFloatMode::Decimal, int numberOfSignificantDigits = 0) const override;
|
||||
|
||||
// TreeNode
|
||||
size_t size() const override { return sizeof(UndefinedNode); }
|
||||
const char * description() const override { return "Allocation Failed"; }
|
||||
int numberOfChildren() const override { return 0; }
|
||||
bool isAllocationFailure() const override { return true; }
|
||||
};
|
||||
|
||||
class SymbolNode : public ExpressionNode {
|
||||
public:
|
||||
bool isApproximate(Context & context) const;
|
||||
bool isMatrixSymbol() const;
|
||||
char name() const;
|
||||
// ExpressionNode
|
||||
Type type() const override { return Type::Undefined; }
|
||||
EvaluationReference<float> approximate(SinglePrecision p, Context& context, Preferences::AngleUnit angleUnit) const override { return Complex<float>::Undefined().storeEvaluation(); }
|
||||
EvaluationReference<double> approximate(DoublePrecision p, Context& context, Preferences::AngleUnit angleUnit) const override { return Complex<double>::Undefined().storeEvaluation(); }
|
||||
LayoutRef createLayout(Preferences::PrintFloatMode floatDisplayMode, int numberOfSignificantDigits) const override;
|
||||
int writeTextInBuffer(char * buffer, int bufferSize, Preferences::PrintFloatMode floatDisplayMode = Preferences::PrintFloatMode::Decimal, int numberOfSignificantDigits = 0) const override;
|
||||
|
||||
// TreeNode
|
||||
size_t size() const override { return sizeof(UndefinedNode); }
|
||||
const char * description() const override { return "Allocation Failed"; }
|
||||
int numberOfChildren() const override { return 0; }
|
||||
bool isAllocationFailure() const override { return true; }
|
||||
};
|
||||
|
||||
class RationalNode : public ExpressionNode {
|
||||
public:
|
||||
// ExpressionNode
|
||||
Type type() const override { return Type::Rational; }
|
||||
EvaluationReference<float> approximate(SinglePrecision p, Context& context, Preferences::AngleUnit angleUnit) const override { return Complex<float>::Undefined().storeEvaluation(); }
|
||||
Evaluation<double> * approximate(DoublePrecision p, Context& context, Preferences::AngleUnit angleUnit) const override { return Complex<double>::Undefined().storeEvaluation(); }
|
||||
LayoutRef createLayout(Preferences::PrintFloatMode floatDisplayMode, int numberOfSignificantDigits) const override;
|
||||
int writeTextInBuffer(char * buffer, int bufferSize, Preferences::PrintFloatMode floatDisplayMode = Preferences::PrintFloatMode::Decimal, int numberOfSignificantDigits = 0) const override;
|
||||
|
||||
// TreeNode
|
||||
size_t size() const override { return sizeof(UndefinedNode); }
|
||||
const char * description() const override { return "Allocation Failed"; }
|
||||
int numberOfChildren() const override { return 0; }
|
||||
bool isAllocationFailure() const override { return true; }
|
||||
};
|
||||
|
||||
class OppositeNode : public ExpressionNode {
|
||||
public:
|
||||
// ExpressionNode
|
||||
Type type() const override { return Type::Opposite; }
|
||||
Evaluation<float> * approximate(SinglePrecision p, Context& context, Preferences::AngleUnit angleUnit) const override { return Complex<float>::Undefined().storeEvaluation(); }
|
||||
Evaluation<double> * approximate(DoublePrecision p, Context& context, Preferences::AngleUnit angleUnit) const override { return Complex<double>::Undefined().storeEvaluation(); }
|
||||
LayoutRef createLayout(Preferences::PrintFloatMode floatDisplayMode, int numberOfSignificantDigits) const override;
|
||||
int writeTextInBuffer(char * buffer, int bufferSize, Preferences::PrintFloatMode floatDisplayMode = Preferences::PrintFloatMode::Decimal, int numberOfSignificantDigits = 0) const override;
|
||||
|
||||
// TreeNode
|
||||
size_t size() const override { return sizeof(UndefinedNode); }
|
||||
const char * description() const override { return "Allocation Failed"; }
|
||||
int numberOfChildren() const override { return 0; }
|
||||
bool isAllocationFailure() const override { return true; }
|
||||
};
|
||||
|
||||
|
||||
typedef ExpressionReference UndefinedRef;
|
||||
typedef ExpressionReference SymbolRef;
|
||||
class RationalRef : public ExpressionReference {
|
||||
public:
|
||||
RationalRef(int i) :
|
||||
ExpressionReference()
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
class OppositeRef : public ExpressionReference {
|
||||
public:
|
||||
OppositeRef(ExpressionReference child) :
|
||||
ExpressionReference()
|
||||
{
|
||||
}
|
||||
};
|
||||
*/
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
Reference in New Issue
Block a user