Class quartic_real_std (o2scl)

O2scl : Class List

template<class fp_t = double>
class quartic_real_std : public o2scl::quartic_real<double>

Solve a quartic with real coefficients and real roots.

Public Functions

inline quartic_real_std()
inline virtual ~quartic_real_std()
inline virtual int solve_r(const fp_t a4, const fp_t b4, const fp_t c4, const fp_t d4, const fp_t e4, fp_t &x1, fp_t &x2, fp_t &x3, fp_t &x4)

Solves the polynomial \( a_4 x^4 + b_4 x^3 + c_4 x^2 + d_4 x + e_4 = 0 \).

inline const char *type()

Return a string denoting the type (“quartic_real_std”)

Protected Attributes

cubic_real_coeff_gsl2<fp_t, std::complex<fp_t>> cub2
quadratic_real_coeff_gsl2<fp_t, std::complex<fp_t>> quad2