Class cubic_complex_std (o2scl)¶
-
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
giving the three complex solutions , , and .
-
inline const char *type()¶
Return a string denoting the type (“cubic_complex_std”)
-
inline virtual ~cubic_complex_std()¶