|
| | QuarticT ()=default |
| | Build an empty quartic solver instance.
|
| | QuarticT (T_real const &a, T_real const &b, T_real const &c, T_real const &d, T_real const &e) |
| void | setup (T_real const &a, T_real const &b, T_real const &c, T_real const &d, T_real const &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_roots().
|
| integer | get_real_roots (T_real r[]) const |
| integer | getRealRoots (T_real r[]) const |
| | Alias of get_real_roots().
|
| integer | get_positive_roots (T_real r[]) const |
| integer | getPositiveRoots (T_real r[]) const |
| | Alias of get_positive_roots().
|
| integer | get_negative_roots (T_real r[]) const |
| integer | getNegativeRoots (T_real r[]) const |
| | Alias of get_negative_roots().
|
| integer | get_roots_in_range (T_real const &a, T_real const &b, T_real r[]) const |
| integer | getRootsInRange (T_real const &a, T_real const &b, T_real r[]) const |
| | Alias of get_roots_in_range().
|
| integer | get_roots_in_open_range (T_real const &a, T_real const &b, T_real r[]) const |
| integer | getRootsInOpenRange (T_real const &a, T_real const &b, T_real r[]) const |
| | Alias of get_roots_in_open_range().
|
| T_real | real_root0 () const |
| T_real | real_root1 () const |
| T_real | real_root2 () const |
| T_real | real_root3 () const |
| T_complex | root0 () const |
| T_complex | root1 () const |
| T_complex | root2 () const |
| T_complex | root3 () const |
| void | get_root0 (T_real &re, T_real &im) const |
| void | getRoot0 (T_real &re, T_real &im) const |
| | Alias of get_root0().
|
| void | get_root0 (T_complex &r) const |
| void | getRoot0 (T_complex &r) const |
| | Alias of get_root0().
|
| void | get_root1 (T_real &re, T_real &im) const |
| void | getRoot1 (T_real &re, T_real &im) const |
| | Alias of get_root1().
|
| void | get_root1 (T_complex &r) const |
| void | getRoot1 (T_complex &r) const |
| | Alias of get_root1().
|
| void | get_root2 (T_real &re, T_real &im) const |
| void | getRoot2 (T_real &re, T_real &im) const |
| | Alias of get_root2().
|
| void | get_root2 (T_complex &r) const |
| void | getRoot2 (T_complex &r) const |
| | Alias of get_root2().
|
| void | get_root3 (T_real &re, T_real &im) const |
| void | getRoot3 (T_real &re, T_real &im) const |
| | Alias of get_root3().
|
| void | get_root3 (T_complex &r) const |
| void | getRoot3 (T_complex &r) const |
| | Alias of get_root3().
|
| T_complex | root (integer const i) const |
| void | get_root (integer const i, T_real &re, T_real &im) const |
| T_real | eval (T_real const &x) const |
| T_complex | eval (T_complex const &x) const |
| void | eval (T_real const &x, T_real &p, T_real &dp) const |
| void | info (ostream_type &s) const |
| bool | check (ostream_type &s) const |
template<typename T_real, typename T_complex>
class PolynomialRoots::QuarticT< T_real, T_complex >
Quartic polynomial class
Constructor
double a = 1;
double b = 2;
double c = 3;
double d = 3;
double e = 3;
void setup(T_real const &a, T_real const &b, T_real const &c, T_real const &d, T_real const &e)
Definition PolynomialRoots.hh:1131
QuarticT< real_type, real_complex > Quartic
Definition PolynomialRoots.hh:1481
Get kind of solution
int nroots = p.num_complex_root();
integer num_roots() const
Definition PolynomialRoots.hh:1153
integer num_real_roots() const
Definition PolynomialRoots.hh:1161
Get real roots
double r_min = 0;
double r_max = 2;
double r[4];
int nroots;
integer getPositiveRoots(T_real r[]) const
Alias of get_positive_roots().
Definition PolynomialRoots.hh:1194
integer getRealRoots(T_real r[]) const
Alias of get_real_roots().
Definition PolynomialRoots.hh:1183
integer getRootsInRange(T_real const &a, T_real const &b, T_real r[]) const
Alias of get_roots_in_range().
Definition PolynomialRoots.hh:1218
integer getNegativeRoots(T_real r[]) const
Alias of get_negative_roots().
Definition PolynomialRoots.hh:1205
integer getRootsInOpenRange(T_real const &a, T_real const &b, T_real r[]) const
Alias of get_roots_in_open_range().
Definition PolynomialRoots.hh:1232
Get roots
T_complex root3() const
Definition PolynomialRoots.hh:1279
void getRoot2(T_real &re, T_real &im) const
Alias of get_root2().
Definition PolynomialRoots.hh:1367
T_real real_root2() const
Definition PolynomialRoots.hh:1253
void getRoot3(T_real &re, T_real &im) const
Alias of get_root3().
Definition PolynomialRoots.hh:1401
void getRoot0(T_real &re, T_real &im) const
Alias of get_root0().
Definition PolynomialRoots.hh:1299
T_complex root1() const
Definition PolynomialRoots.hh:1269
T_real real_root3() const
Definition PolynomialRoots.hh:1259
void getRoot1(T_real &re, T_real &im) const
Alias of get_root1().
Definition PolynomialRoots.hh:1333
T_complex root0() const
Definition PolynomialRoots.hh:1264
T_real real_root0() const
Definition PolynomialRoots.hh:1241
T_complex root2() const
Definition PolynomialRoots.hh:1274
T_real real_root1() const
Definition PolynomialRoots.hh:1247
Lightweight complex number type used by the standard-precision solvers.
Definition PolynomialRoots-complex.hxx:30
double real_type
Scalar type used by the standard-precision API.
Definition PolynomialRoots.hh:66
Evaluate polynomial
{double or complex} v, x;
T_real eval(T_real const &x) const
Definition PolynomialRoots.hh:1455
Information
bool ok = p.
check( cout );
bool check(ostream_type &s) const
Definition PolynomialRoots-3-Quartic.cc:894
void info(ostream_type &s) const
Definition PolynomialRoots-3-Quartic.cc:847