# naginterfaces.library.zeros.quartic_​real¶

naginterfaces.library.zeros.quartic_real(e, a, b, c, d)[source]

quartic_real determines the roots of a quartic equation with real coefficients.

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

https://www.nag.com/numeric/nl/nagdoc_27.3/flhtml/c02/c02alf.html

Parameters
efloat

, the coefficient of .

afloat

, the coefficient of .

bfloat

, the coefficient of .

cfloat

, the coefficient of .

dfloat

, the constant coefficient.

Returns
zerocomplex, ndarray, shape

contains the th root.

errestfloat, ndarray, shape

contains an approximate error estimate for the th root.

Raises
NagValueError
(errno )

On entry, .

Constraint: .

(errno )

The companion matrix cannot be formed without overflow.

(errno )

Failure to converge in lapackeig.dhseqr.

Notes

quartic_real attempts to find the roots of the quartic equation
The eigenvalues are obtained by a call to lapackeig.dhseqr. Further details can be found in Further Comments.
To obtain the roots of a cubic equation, cubic_real() can be used.