mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-26 01:00:50 +01:00
[poincare] Rename class ReelPart and its constructor
Reel => Real
This commit is contained in:
@@ -5,9 +5,9 @@
|
||||
|
||||
namespace Poincare {
|
||||
|
||||
class ReelPart : public Function {
|
||||
class RealPart : public Function {
|
||||
public:
|
||||
ReelPart();
|
||||
RealPart();
|
||||
Type type() const override;
|
||||
Expression * cloneWithDifferentOperands(Expression ** newOperands,
|
||||
int numberOfOperands, bool cloneOperands = true) const override;
|
||||
|
||||
@@ -124,7 +124,7 @@ prediction95 { poincare_expression_yylval.expression = new PredictionInterval();
|
||||
prediction { poincare_expression_yylval.expression = new ConfidenceInterval(); return FUNCTION; }
|
||||
product { poincare_expression_yylval.expression = new Product(); return FUNCTION; }
|
||||
quo { poincare_expression_yylval.expression = new DivisionQuotient(); return FUNCTION; }
|
||||
re { poincare_expression_yylval.expression = new ReelPart(); return FUNCTION; }
|
||||
re { poincare_expression_yylval.expression = new RealPart(); return FUNCTION; }
|
||||
rem { poincare_expression_yylval.expression = new DivisionRemainder(); return FUNCTION; }
|
||||
root { poincare_expression_yylval.expression = new NthRoot(); return FUNCTION; }
|
||||
round { poincare_expression_yylval.expression = new Round(); return FUNCTION; }
|
||||
|
||||
@@ -8,25 +8,25 @@ extern "C" {
|
||||
|
||||
namespace Poincare {
|
||||
|
||||
ReelPart::ReelPart() :
|
||||
RealPart::RealPart() :
|
||||
Function("re")
|
||||
{
|
||||
}
|
||||
|
||||
Expression::Type ReelPart::type() const {
|
||||
Expression::Type RealPart::type() const {
|
||||
return Type::ReelPart;
|
||||
}
|
||||
|
||||
Expression * ReelPart::cloneWithDifferentOperands(Expression** newOperands,
|
||||
Expression * RealPart::cloneWithDifferentOperands(Expression** newOperands,
|
||||
int numberOfOperands, bool cloneOperands) const {
|
||||
assert(newOperands != nullptr);
|
||||
ReelPart * rp = new ReelPart();
|
||||
RealPart * rp = new RealPart();
|
||||
rp->setArgument(newOperands, numberOfOperands, cloneOperands);
|
||||
return rp;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
Complex<T> ReelPart::templatedComputeComplex(const Complex<T> c) const {
|
||||
Complex<T> RealPart::templatedComputeComplex(const Complex<T> c) const {
|
||||
return Complex<T>::Float(c.a());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user