Routine ID: C205 | |
---|---|
Author(s): T. Pomentale | Library: MATHLIB |
Submitter: K.S. Kölbig | Submitted: 20.04.1970 |
Language: Fortran | Revised: 15.03.1993 |
Subroutine subprograms RZERO and DZERO compute, to an attempted specified accuracy, a zero of a real-valued function lying in a given interval , where .
On CDC and Cray computers, the double-precision version DZERO is not available.
Structure:
SUBROUTINE subprograms
User Entry Names: RZERO, DZERO
Files Referenced: Unit 6
External References: MTLMTR (N002), ABEND (Z035),
user-supplied FUNCTION subprogram
Usage:
For (type REAL), (type DOUBLE PRECISION),
CALL tZERO(A,B,X0,R,EPS,MAXF,F)
Method:
A mixed strategy is used, based on the Muller method of parabolic interpolation supplemented by bisection.
Accuracy:
The routine tries to compute a value X0 such that
If this accuracy is obtained with fewer than MAXF references to the function F within the iteration loop, the subroutine exits with R positive.
Error handling:
Error C205.1:
.
X0 is set equal to zero and R
is set equal to
.
Error C205.2: The number of calls to F exceeds MAXF.
X0 is set equal to zero and R is set to
.
A message is written on Unit 6, unless subroutine
MTLSET (N002) has been called.