Power System Platform  2026w10a-beta
Loading...
Searching...
No Matches
MathExprParser.cpp
1/*
2 * Copyright (C) 2017 Thales Lima Oliveira <thales@ufu.br>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <https://www.gnu.org/licenses/>.
16 */
17
18#include "MathExprParser.h"
19
20MathExprParser::MathExprParser()
21{
22 AddConstant("pi", 3.14159265358979323846);
23 AddConstant("e", 2.71828182845904523536);
24 AddConstant("closed", 1);
25 AddConstant("open", 0);
26 AddConstant("true", 1);
27 AddConstant("false", 0);
28}
29
30MathExprParser::~MathExprParser() {}