33 mutable SP::MATH_Pn
mQ;
130 inline SP::MATH_Pn
getQ()
const {
const tReal & operator[](const tUIndex &i) const
get the coeeficient of degre i in [0,getDegree()]
Definition: MATH_Pn.h:72
tReal operator()(const tReal &x)
evaluate the polynom at x
Definition: MATH_Pn.h:88
#define tUInteger
Definition: types.h:91
void setCoefficients(const tReal a[])
set coeficients of the polynom
Definition: MATH_Pn.cpp:52
virtual tString toString() const
return the string representation of the class
Definition: MATH_Pn.cpp:161
const tUIndex & getDegree() const
retun the degree
Definition: MATH_Pn.h:111
const tReal * getCoefficients() const
get the coefficients
Definition: MATH_Pn.h:117
virtual ~MATH_Pn(void)
destroy
Definition: MATH_Pn.cpp:21
SP::MATH_Pn getQ() const
return the temporary polynom
Definition: MATH_Pn.h:130
#define tBoolean
Definition: types.h:139
tString toString() const
return the string associated to the integer
Definition: CORE_Integer.h:106
void setDegree(const tUIndex &n)
et the degree of the polynom
Definition: MATH_Pn.cpp:45
tReal * getCoefficients()
get the coefficients
Definition: MATH_Pn.h:123
this class describes the exceptions raised for CORE package
Definition: CORE_Exception.h:15
tBoolean firstPositiveMaximum(tReal x[]) const
compute the first postive point where the polynom is maximum
Definition: MATH_Pn.cpp:97
#define tUIndex
Definition: types.h:126
abstract base class for most classes.
Definition: CORE_Object.h:53
#define tString
Definition: types.h:135
This class describes a polynom of degree n .
Definition: MATH_Pn.h:20
SP::MATH_Pn mQ
Definition: MATH_Pn.h:33
virtual tReal evaluate(const tReal &x) const
evaluate the polynom at x
Definition: MATH_Pn.cpp:25
tReal & operator[](const tUIndex &i)
get the coeeficient of degre i in [0,getDegree()]
Definition: MATH_Pn.h:80
virtual tUInteger computeExtrenums(tReal x[]) const
find the x extrenums.
Definition: MATH_Pn.cpp:57
#define tReal
Definition: types.h:118
MATH_Pn()
create
Definition: MATH_Pn.cpp:15
tReal * mA
Definition: MATH_Pn.h:31
virtual tUInteger solve(tReal x[]) const =0
solve the equation P(x)=0.
tUIndex mDegree
Definition: MATH_Pn.h:32
tBoolean firstPositiveMinimum(tReal x[]) const
compute the first positive point where the polynom is minimum
Definition: MATH_Pn.cpp:130