20 explicit Real(
double value);
31 [[nodiscard]]
auto GetValue() const ->
double;
37 auto operator=(const
Real& other) ->
Real& = default;
#define EXPRESSION_CATEGORY(category)
Definition Expression.hpp:192
#define EXPRESSION_TYPE(type)
Definition Expression.hpp:181
An expression.
Definition Expression.hpp:56
A leaf expression.
Definition LeafExpression.hpp:21
A real number.
Definition Real.hpp:15
auto Differentiate(const Expression &) const -> std::unique_ptr< Expression > final
Tries to differentiate this function.
Definition Real.cpp:21
auto GetValue() const -> double
Gets the value of the real number.
Definition Real.cpp:31
auto Integrate(const Expression &integrationVariable) const -> std::unique_ptr< Expression > final
Attempts to integrate this expression using integration rules.
Definition Real.cpp:36
Real(const Real &other)=default
auto Equals(const Expression &other) const -> bool final
Compares this expression to another expression for equality.
Definition Real.cpp:26
@ UnExp
Definition Expression.hpp:46