Class cubic_complex_std (o2scl)

O2scl : Class List

template<class fp_t = double, class cx_t = std::complex<fp_t>>
class cubic_complex_std : public o2scl::cubic_complex<double, std::complex<double>>

Solve a cubic with complex coefficients and complex roots.

Public Functions

inline virtual ~cubic_complex_std()
inline virtual int solve_c(const cx_t a3, const cx_t b3, const cx_t c3, const cx_t d3, cx_t &x1, cx_t &x2, cx_t &x3)

Solves the complex polynomial \( a_3 x^3 + b_3 x^2 + c_3 x + d_3= 0 \) giving the three complex solutions \( x=x_1 \) , \( x=x_2 \) , and \( x=x_3 \) .

inline const char *type()

Return a string denoting the type (“cubic_complex_std”)