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 a3x3+b3x2+c3x+d3=0 giving the three complex solutions x=x1 , x=x2 , and x=x3 .

inline const char *type()

Return a string denoting the type (“cubic_complex_std”)