next up previous contents
Next: Debugging Up: Finding the right bounds Previous: New routine: ``func_SchrodingerNodes''

Fixing ``rtbisp480''

The numerical recipes routine ``rtbis'' has a small bug: If one of your two initial guesses x1 or x2 for the solution gives f(x)=0, the routine prints an error message and halts the program. Modify ``rtbisp480'' to test for these conditions and to return the appropriate value, x1 or x2, as the solution.



Tomas Arias
Tue Feb 22 15:12:08 EST 2000