OASIS
Open Algebra Software
Loading...
Searching...
No Matches
EulerNumber.hpp
Go to the documentation of this file.
1//
2// Created by Andrew Nazareth on 6/25/24.
3//
4
5#ifndef OASIS_EULERNUMBER_HPP
6#define OASIS_EULERNUMBER_HPP
7
8#include "LeafExpression.hpp"
9
10namespace Oasis {
11
15class EulerNumber : public LeafExpression<EulerNumber> {
16public:
17 EulerNumber() = default;
18 EulerNumber(const EulerNumber& other) = default;
19
20 [[nodiscard]] auto Equals(const Expression& other) const -> bool final;
21
22 [[nodiscard]] auto Integrate(const Expression& integrationVariable) const -> std::unique_ptr<Expression> final;
23
24 [[nodiscard]] auto Differentiate(const Expression&) const -> std::unique_ptr<Expression> final;
25
28
29 static auto GetValue() -> double;
30};
31}
32
33#endif // OASIS_EULERNUMBER_HPP
#define EXPRESSION_CATEGORY(category)
Definition Expression.hpp:230
#define EXPRESSION_TYPE(type)
Definition Expression.hpp:219
An 'EulerNumber' number.
Definition EulerNumber.hpp:15
auto Integrate(const Expression &integrationVariable) const -> std::unique_ptr< Expression > final
Attempts to integrate this expression using integration rules.
Definition EulerNumber.cpp:32
auto Differentiate(const Expression &) const -> std::unique_ptr< Expression > final
Tries to differentiate this function.
Definition EulerNumber.cpp:27
static auto GetValue() -> double
Definition EulerNumber.cpp:22
auto Equals(const Expression &other) const -> bool final
Compares this expression to another expression for equality.
Definition EulerNumber.cpp:17
EulerNumber()=default
EulerNumber(const EulerNumber &other)=default
An expression.
Definition Expression.hpp:62
A leaf expression.
Definition LeafExpression.hpp:21
Definition Add.hpp:11
@ UnExp
Definition Expression.hpp:52