naginterfaces.library.zeros.quadratic_​complex

naginterfaces.library.zeros.quadratic_complex(a, b, c)[source]

quadratic_complex determines the roots of a quadratic equation with complex coefficients.

For full information please refer to the NAG Library document for c02ah

https://support.nag.com/numeric/nl/nagdoc_30.3/flhtml/c02/c02ahf.html

Parameters
acomplex

, the coefficient of .

bcomplex

, the coefficient of .

ccomplex

, the constant coefficient.

Returns
z_smallcomplex

The smallest root in magnitude.

z_largecomplex

The largest root in magnitude.

Warns
NagAlgorithmicWarning
(errno )

On entry, .

(errno )

On entry, and .

(errno )

On entry, and the root overflows: , , , , , .

(errno )

On entry, and the root overflows: , , , , , .

(errno )

On entry, , and . is so large that is indistinguishable from and the root overflows. , , and .

Notes

No equivalent traditional C interface for this routine exists in the NAG Library.

quadratic_complex attempts to find the roots of the quadratic equation (where , and are complex coefficients), by carefully evaluating the ‘standard’ closed formula

It is based on the function CQDRTC from Smith (1967).

Note: it is not necessary to scale the coefficients prior to calling the function.

References

Smith, B T, 1967, ZERPOL: a zero finding algorithm for polynomials using Laguerre’s method, Technical Report, Department of Computer Science, University of Toronto, Canada