QtiPlot 0.9.8.2
|
Mathematical parser class based on muParser. More...
#include <MyParser.h>
Classes | |
class | Pole |
class | Singularity |
Public Member Functions | |
void | addGSLConstants () |
double | DiffRemoveSingularity (double *xvar, double *a_Var, double a_fPos) const |
double | EvalRemoveSingularity (double *xvar, bool noisy=true) const |
MyParser () | |
void | setLocale (const QLocale &locale) |
Static Public Member Functions | |
static QString | explainFunction (int index) |
static const QStringList | functionNamesList () |
static const QStringList | functionsList () |
static QLocale | getLocale () |
static void | SingularityErrorMessage (double xvar) |
Mathematical parser class based on muParser.
Eliminate in favour of Script/ScriptingEnv. This will allow you to use e.g. Python's global variables and functions everywhere. Before this happens, a cleaner and more generic solution for accessing the current ScriptingEnv should be implemented (maybe by making it a property of Project; see ApplicationWindow).
MyParser::MyParser | ( | ) |
References getLocale(), M_PI, muParserScripting::math_functions, and setLocale().
void MyParser::addGSLConstants | ( | ) |
Referenced by DoubleSpinBox::interpretText(), and muParserScript::muParserScript().
double MyParser::DiffRemoveSingularity | ( | double * | xvar, |
double * | a_Var, | ||
double | a_fPos | ||
) | const |
References EvalRemoveSingularity().
Referenced by user_df().
double MyParser::EvalRemoveSingularity | ( | double * | xvar, |
bool | noisy = true |
||
) | const |
QString MyParser::explainFunction | ( | int | index | ) | [static] |
References muParserScripting::mathFunction::description, getLocale(), and muParserScripting::math_functions.
Referenced by FitDialog::showExpression(), and FunctionDialog::updateFunctionExplain().
const QStringList MyParser::functionNamesList | ( | ) | [static] |
References muParserScripting::math_functions.
Referenced by ScriptEdit::ScriptEdit().
const QStringList MyParser::functionsList | ( | ) | [static] |
References getLocale(), and muParserScripting::math_functions.
Referenced by FunctionDialog::FunctionDialog(), IntDialog::IntDialog(), and FitDialog::showParseFunctions().
QLocale MyParser::getLocale | ( | ) | [static] |
References ApplicationWindow::d_muparser_c_locale.
Referenced by explainFunction(), functionsList(), and MyParser().
void MyParser::setLocale | ( | const QLocale & | locale | ) |
Referenced by DoubleSpinBox::interpretText(), and MyParser().
static void MyParser::SingularityErrorMessage | ( | double | xvar | ) | [static] |