Author(s): K.S. Kölbig | Library: MATHLIB |
Submitter: | Submitted: 15.01.1988 |
Language: Fortran | Revised: 01.12.1994 |
Subroutine subprograms RRTEQ4 and DRTEQ4 compute the four roots of
for real coefficients a,b,c,d.
On computers other than CDC or Cray, only the double-precision version DRTEQ4 is available. On CDC and Cray computers, only the single-precision version RRTEQ4 is available.
Structure:
SUBROUTINE subprograms
User Entry Names: RRTEQ4, DRTEQ4
Obsolete User Entry Names: RTEQ4 RRTEQ4
External References: RRTEQ3, DRTEQ3
Usage:
For (type REAL), (type DOUBLE PRECISION),
CALL tRTEQ4(A,B,C,D,Z,DC,MT)
Method:
The equation is solved by the classical procedure, i.e., by solving its cubic resolvent and by combining the square roots of these solutions appropriately.
Accuracy:
Depends on the coefficients a,b,c,d. The values of
and of DC may be inaccurate if
|DC| is very small. MT may be uncertain in such cases.