Class quartic_complex_std (o2scl)

O2scl : Class List

template<class fp_t = double, class cx_t = std::complex<fp_t>>
class quartic_complex_std : public o2scl::quartic_complex<double, std::complex<double>>

Solve a quartic with complex coefficients and complex roots.

Public Functions

inline virtual ~quartic_complex_std()
inline virtual int solve_c(const cx_t a4, const cx_t b4, const cx_t c4, const cx_t d4, const cx_t e4, cx_t &x1, cx_t &x2, cx_t &x3, cx_t &x4)

Solves the complex polynomial \( a_4 x^4 + b_4 x^3 + c_4 x^2 + d_4 x + e_4 = 0 \) giving the four complex solutions \( x=x_1 \) , \( x=x_2 \) , \( x=x_3 \) , and \( x=x_4 \) .

inline const char *type()

Return a string denoting the type (“quartic_complex_std”)

Protected Attributes

cubic_complex_std<fp_t, cx_t> cub_obj

The object to solve for the associated cubic.

quadratic_complex_std<fp_t, cx_t> quad_obj

The object to solve for the associated cubic.