#include <polynomial.hpp>
|
static bool | getQuarticRoots (float *p, float *x) |
| getQuarticRoots –> MANDATORY p[5] == 1.0 More...
|
|
static bool | getSecondOrderRoots (float a, float b, float c, float *x0, float *x1) |
| getSecondOrderRoots solves second order equations, ax^2 + b x + c = 0 More...
|
|
static bool | getSecondOrderRootsS (float a, float b, float c, float *x0, float *x1) |
| getSecondOrderRootsS solves second order equations, ax^2 + 2 b x + c = 0; i.e., 2 b is even! More...
|
|
◆ Polynomial() [1/3]
pic::Polynomial::Polynomial |
( |
| ) |
|
|
inline |
◆ Polynomial() [2/3]
pic::Polynomial::Polynomial |
( |
int |
nCoeff | ) |
|
|
inline |
◆ Polynomial() [3/3]
pic::Polynomial::Polynomial |
( |
float * |
coeff, |
|
|
int |
nCoeff |
|
) |
| |
|
inline |
◆ ~Polynomial()
pic::Polynomial::~Polynomial |
( |
| ) |
|
|
inline |
◆ computeAllCoeffPositive()
void pic::Polynomial::computeAllCoeffPositive |
( |
| ) |
|
|
inline |
◆ dEval()
float pic::Polynomial::dEval |
( |
float |
x | ) |
|
|
inline |
◆ eval()
float pic::Polynomial::eval |
( |
float |
x | ) |
|
|
inline |
◆ fit()
void pic::Polynomial::fit |
( |
std::vector< float > & |
x, |
|
|
std::vector< float > & |
y, |
|
|
int |
n |
|
) |
| |
|
inline |
◆ getAllRoots()
bool pic::Polynomial::getAllRoots |
( |
float * |
x | ) |
|
|
inline |
getAllRoots
- Parameters
-
- Returns
◆ getArray()
float* pic::Polynomial::getArray |
( |
float * |
ret | ) |
|
|
inline |
◆ getQuarticRoots()
static bool pic::Polynomial::getQuarticRoots |
( |
float * |
p, |
|
|
float * |
x |
|
) |
| |
|
inlinestatic |
getQuarticRoots –> MANDATORY p[5] == 1.0
- Parameters
-
- Returns
◆ getRoots()
bool pic::Polynomial::getRoots |
( |
float * |
x | ) |
|
|
inline |
getRoots
- Parameters
-
- Returns
◆ getSecondOrderRoots()
static bool pic::Polynomial::getSecondOrderRoots |
( |
float |
a, |
|
|
float |
b, |
|
|
float |
c, |
|
|
float * |
x0, |
|
|
float * |
x1 |
|
) |
| |
|
inlinestatic |
getSecondOrderRoots solves second order equations, ax^2 + b x + c = 0
- Parameters
-
a | is the a coefficient |
b | is the b coefficient |
c | is the c coefficient |
x0 | is the first zero |
x1 | is the second zero |
- Returns
- It returns true, if x0 and x1 have a real value, false otherwise
◆ getSecondOrderRootsS()
static bool pic::Polynomial::getSecondOrderRootsS |
( |
float |
a, |
|
|
float |
b, |
|
|
float |
c, |
|
|
float * |
x0, |
|
|
float * |
x1 |
|
) |
| |
|
inlinestatic |
getSecondOrderRootsS solves second order equations, ax^2 + 2 b x + c = 0; i.e., 2 b is even!
- Parameters
-
a | is the a coefficient |
b | is the b coefficient |
c | is the c coefficient |
x0 | is the first zero |
x1 | is the second zero |
- Returns
- It returns true, if x0 and x1 have a real value, false otherwise
◆ horner()
Polynomial pic::Polynomial::horner |
( |
float |
d, |
|
|
float & |
remainder |
|
) |
| |
|
inline |
horner
- Parameters
-
- Returns
◆ normalForm()
void pic::Polynomial::normalForm |
( |
| ) |
|
|
inline |
◆ print()
void pic::Polynomial::print |
( |
| ) |
|
|
inline |
◆ toString()
std::string pic::Polynomial::toString |
( |
| ) |
|
|
inline |
◆ all_coeff_positive
bool pic::Polynomial::all_coeff_positive |
◆ coeff
std::vector<float> pic::Polynomial::coeff |
The documentation for this class was generated from the following file:
- C:/Users/Francesco/Documents/GitHub/piccante/include/util/polynomial.hpp