OASIS
Open Algebra Software
Loading...
Searching...
No Matches
Pi.hpp
Go to the documentation of this file.
1//
2// Created by Andrew Nazareth on 6/25/24.
3//
4
5#ifndef OASIS_PI_HPP
6#define OASIS_PI_HPP
7
8#include "LeafExpression.hpp"
9
10namespace Oasis {
11
15class Pi : public LeafExpression<Pi> {
16public:
17 Pi() = default;
18 Pi(const Pi& other) = default;
19
20 [[nodiscard]] auto Equals(const Expression& other) const -> bool final;
21
24
25 static auto GetValue() -> double;
26};
27}
28
29#endif // OASIS_PI_HPP
#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
Mathematical Constant Pi.
Definition Pi.hpp:15
static auto GetValue() -> double
Definition Pi.cpp:16
auto Equals(const Expression &other) const -> bool final
Compares this expression to another expression for equality.
Definition Pi.cpp:11
Pi(const Pi &other)=default
Pi()=default
Definition Add.hpp:11
@ UnExp
Definition Expression.hpp:46