Class quadratic_complex_std (o2scl)

O2scl : Class List

template<class fp_t = double, class cx_t = std::complex<fp_t>>
class quadratic_complex_std : public o2scl::quadratic_complex<double, std::complex<double>>

Solve a quadratic with complex coefficients and complex roots.

Public Functions

inline virtual ~quadratic_complex_std()
inline virtual int solve_c(const cx_t a2, const cx_t b2, const cx_t c2, cx_t &x1, cx_t &x2)

Solves the complex polynomial \( a_2 x^2 + b_2 x + c_2 = 0 \) giving the two complex solutions \( x=x_1 \) and \( x=x_2 \).

inline const char *type()

Return a string denoting the type (“quadratic_complex_std”)