1 #ifndef MATH_QuadraticPolynom_H
2 #define MATH_QuadraticPolynom_H
49 static inline SP::MATH_QuadraticPolynom
New() {
79 int& n,T solutions[2]);
83 inline void solve(
int& n,
long double solutions[2])
const {
84 MATH_QuadraticPolynom::solve<long double>(mCoef[2],mCoef[1],mCoef[0],n,solutions);
88 inline void solve(
int& n,
double solutions[2])
const {
89 MATH_QuadraticPolynom::solve<double>(mCoef[2],mCoef[1],mCoef[0],n,solutions);
This class describes a function function.
Definition: MATH_Function.h:16
tReal & operator[](const int &i)
the the coeficient of the monome of degre i
Definition: MATH_QuadraticPolynom.h:64
This class describes the main interface class for a soft user interface (R,matlab,python etc...) class.
Definition: UI_Class.h:38
void saveToUIClass(UI_Class &mclass) const
save the class to the backup class
Definition: MATH_QuadraticPolynom.cpp:21
virtual ~MATH_QuadraticPolynom(void)
destroy an trigamma funtion
Definition: MATH_QuadraticPolynom.cpp:10
virtual tString toString() const
return the string representation of the class
Definition: MATH_QuadraticPolynom.cpp:32
void copy(const MATH_QuadraticPolynom &poly)
copy
Definition: MATH_QuadraticPolynom.cpp:28
static tReal ComputeFunction(const tReal &a, const tReal &b, const tReal &c, const tReal &x)
compute the function return
Definition: MATH_QuadraticPolynom.h:114
void loadFromUIClass(const UI_Class &mclass)
load the class from the backup class
Definition: MATH_QuadraticPolynom.cpp:14
#define tString
Definition: types.h:49
const tReal & operator[](const int &i) const
the the coeficient of the monome of degre i
Definition: MATH_QuadraticPolynom.h:70
MATH_QuadraticPolynom(void)
create a trigamma function
Definition: MATH_QuadraticPolynom.cpp:5
void solve(int &n, double solutions[2]) const
Definition: MATH_QuadraticPolynom.h:88
void solve(int &n, long double solutions[2]) const
Definition: MATH_QuadraticPolynom.h:83
static SP::MATH_QuadraticPolynom New()
create a trigamma function
Definition: MATH_QuadraticPolynom.h:49
static void solve(const tReal &a, const tReal &b, const tReal &c, int &n, T solutions[2])
virtual tReal computeFunction(const tReal &x)
compute the function return
Definition: MATH_QuadraticPolynom.h:108
#define tReal
Definition: types.h:18
DEFINE_SPTR(MATH_QuadraticPolynom)
This class describes the quadratic function.
Definition: MATH_QuadraticPolynom.h:14
#define ASSERT_IN(a)
Definition: types.h:96
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:106