|
| Quartic () |
|
| Quartic (real_type a, real_type b, real_type c, real_type d, real_type e) |
|
void | setup (real_type a, real_type b, real_type c, real_type d, real_type e) |
|
integer | num_roots () const |
|
integer | numRoots () const |
| alias of num_roots
|
|
integer | num_real_roots () const |
|
integer | numRealRoots () const |
| alias of num_real_roots
|
|
integer | num_complex_roots () const |
|
integer | numComplexRoots () const |
| alias of num_complex_root
|
|
integer | get_real_roots (real_type r[]) const |
|
integer | getRealRoots (real_type r[]) const |
| alias of get_real_roots
|
|
integer | get_positive_roots (real_type r[]) const |
|
integer | getPositiveRoots (real_type r[]) const |
| alias of get_positive_roots
|
|
integer | get_negative_roots (real_type r[]) const |
|
integer | getNegativeRoots (real_type r[]) const |
| alias of get_negative_roots
|
|
integer | get_roots_in_range (real_type a, real_type b, real_type r[]) const |
|
integer | getRootsInRange (real_type a, real_type b, real_type r[]) const |
| alias of get_roots_in_range
|
|
integer | get_roots_in_open_range (real_type a, real_type b, real_type r[]) const |
|
integer | getRootsInOpenRange (real_type a, real_type b, real_type r[]) const |
| alias of get_roots_in_open_range
|
|
real_type | real_root0 () const |
|
real_type | real_root1 () const |
|
real_type | real_root2 () const |
|
real_type | real_root3 () const |
|
complex_type | root0 () const |
|
complex_type | root1 () const |
|
complex_type | root2 () const |
|
complex_type | root3 () const |
|
void | get_root0 (real_type &re, real_type &im) const |
|
void | getRoot0 (real_type &re, real_type &im) const |
| alias of get_root0
|
|
void | get_root0 (complex_type &r) const |
|
void | getRoot0 (complex_type &r) const |
| alias of get_root0
|
|
void | get_root1 (real_type &re, real_type &im) const |
|
void | getRoot1 (real_type &re, real_type &im) const |
| alias of get_root1
|
|
void | get_root1 (complex_type &r) const |
|
void | getRoot1 (complex_type &r) const |
| alias of get_root1
|
|
void | get_root2 (real_type &re, real_type &im) const |
|
void | getRoot2 (real_type &re, real_type &im) const |
| alias of get_root2
|
|
void | get_root2 (complex_type &r) const |
|
void | getRoot2 (complex_type &r) const |
| alias of get_root2
|
|
void | get_root3 (real_type &re, real_type &im) const |
|
void | getRoot3 (real_type &re, real_type &im) const |
| alias of get_root3
|
|
void | get_root3 (complex_type &r) const |
|
void | getRoot3 (complex_type &r) const |
| alias of get_root3
|
|
real_type | eval (real_type x) const |
|
complex_type | eval (complex_type x) const |
|
void | eval (real_type x, real_type &p, real_type &dp) const |
|
void | info (ostream_type &s) const |
|
bool | check (ostream_type &s) const |
|
Quartic polynomial class
Constructor
double a = 1;
double b = 2;
double c = 3;
double d = 3;
double e = 3;
Quartic()
Definition PolynomialRoots.hh:964
void setup(real_type a, real_type b, real_type c, real_type d, real_type e)
Definition PolynomialRoots.hh:996
Get kind of solution
int nroots = p.num_complex_root();
integer num_real_roots() const
Definition PolynomialRoots.hh:1030
integer num_roots() const
Definition PolynomialRoots.hh:1022
Get real roots
double r_min = 0;
double r_max = 2;
double r[4];
int nroots;
integer getPositiveRoots(real_type r[]) const
alias of get_positive_roots
Definition PolynomialRoots.hh:1063
integer getRootsInOpenRange(real_type a, real_type b, real_type r[]) const
alias of get_roots_in_open_range
Definition PolynomialRoots.hh:1100
integer getRootsInRange(real_type a, real_type b, real_type r[]) const
alias of get_roots_in_range
Definition PolynomialRoots.hh:1087
integer getRealRoots(real_type r[]) const
alias of get_real_roots
Definition PolynomialRoots.hh:1052
integer getNegativeRoots(real_type r[]) const
alias of get_negative_roots
Definition PolynomialRoots.hh:1074
Get roots
double re, im;
real_type real_root1() const
Definition PolynomialRoots.hh:1110
real_type real_root3() const
Definition PolynomialRoots.hh:1120
complex_type root0() const
Definition PolynomialRoots.hh:1126
void getRoot2(real_type &re, real_type &im) const
alias of get_root2
Definition PolynomialRoots.hh:1208
void getRoot0(real_type &re, real_type &im) const
alias of get_root0
Definition PolynomialRoots.hh:1160
void getRoot3(real_type &re, real_type &im) const
alias of get_root3
Definition PolynomialRoots.hh:1232
complex_type root3() const
Definition PolynomialRoots.hh:1147
real_type real_root2() const
Definition PolynomialRoots.hh:1115
complex_type root2() const
Definition PolynomialRoots.hh:1140
complex_type root1() const
Definition PolynomialRoots.hh:1133
real_type real_root0() const
Definition PolynomialRoots.hh:1105
void getRoot1(real_type &re, real_type &im) const
alias of get_root1
Definition PolynomialRoots.hh:1184
std::complex< real_type > complex_type
complex type numbers
Definition PolynomialRoots-Utils.hh:50
Evaluate polynomial
{double or complex} v, x;
real_type eval(real_type x) const
Definition PolynomialRoots.hh:1253
Information
bool ok = p.
check( cout );
void info(ostream_type &s) const
bool check(ostream_type &s) const