1 #ifndef MATH_CubicPolynom_H
2 #define MATH_CubicPolynom_H
49 static inline SP::MATH_CubicPolynom
New() {
81 int& n,T solutions[3]);
85 inline void solve(
int& n,
long double solutions[3])
const {
86 MATH_CubicPolynom::solve<long double>(mCoef[3],mCoef[2],mCoef[1],mCoef[0],n,solutions);
90 inline void solve(
int& n,
double solutions[3])
const {
91 MATH_CubicPolynom::solve<double>(mCoef[3],mCoef[2],mCoef[1],mCoef[0],n,solutions);
118 return ((a*x+b)*x+c)*x+d;
This class describes the quadratic function.
Definition: MATH_CubicPolynom.h:14
This class describes a function function.
Definition: MATH_Function.h:16
DEFINE_SPTR(MATH_CubicPolynom)
virtual tReal computeFunction(const tReal &x)
compute the function return
Definition: MATH_CubicPolynom.h:110
void solve(int &n, double solutions[3]) const
Definition: MATH_CubicPolynom.h:90
void saveToUIClass(UI_Class &mclass) const
save the class to the backup class
Definition: MATH_CubicPolynom.cpp:22
This class describes the main interface class for a soft user interface (R,matlab,python etc...) class.
Definition: UI_Class.h:38
static void solve(const tReal &a, const tReal &b, const tReal &c, const tReal &d, int &n, T solutions[3])
Definition: MATH_CubicPolynom.hpp:7
static SP::MATH_CubicPolynom New()
create a trigamma function
Definition: MATH_CubicPolynom.h:49
virtual tString toString() const
return the strin representation of the class
Definition: MATH_CubicPolynom.cpp:35
void copy(const MATH_CubicPolynom &poly)
copy
Definition: MATH_CubicPolynom.cpp:30
const tReal & operator[](const int &i) const
the the coeficient of the monome of degre i
Definition: MATH_CubicPolynom.h:70
MATH_CubicPolynom(void)
create a trigamma function
Definition: MATH_CubicPolynom.cpp:5
virtual ~MATH_CubicPolynom(void)
destroy an trigamma funtion
Definition: MATH_CubicPolynom.cpp:10
void solve(int &n, long double solutions[3]) const
Definition: MATH_CubicPolynom.h:85
#define tString
Definition: types.h:49
tReal & operator[](const int &i)
the the coeficient of the monome of degre i
Definition: MATH_CubicPolynom.h:64
void loadFromUIClass(const UI_Class &mclass)
load the class from the backup class
Definition: MATH_CubicPolynom.cpp:14
static tReal ComputeFunction(const tReal &a, const tReal &b, const tReal &c, const tReal &d, const tReal &x)
compute the function return
Definition: MATH_CubicPolynom.h:117
#define tReal
Definition: types.h:18
#define ASSERT_IN(a)
Definition: types.h:96
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:106