
The preceding algorithm has been implemented in Maple and run on various inputs including the following examples: (1) for (2) for Figures 1.11.2 picture these two functions. The operations of procedures Zeros and Narrow are represented in Figures 2.12.2. Each right triangle represents a narrowing step by procedure Narrow. A triangle with vertices , , represents Narrow detecting and allowing Narrow to eliminate subinterval as a possible location for any zeros of . The effects of procedure can be seen wherever there is a change in the slope of the hypotenuses of the triangles or two right triangles' altitudes merge together. Gaps on the zaxis between the triangles (most visible in Figure 2.2), represent procedures Locate and Newton taking over from procedures Zeros and Narrow to locate an isolated root of . Closeups of this process for selected roots are shown in Figures 3.13.2. Points in the trajectories computed by Locate and Newton are also shown. The points converge onto the axes where the roots are located. In Maple, we choose nsolve as the name of the main routine to resemble Maple's routine fsolve. Procedure nsolve returns Nonlin() objects and these, like E or Pi, can be evaluated via Maple's evalf to as many decimal places as desired. Thus,
Each Nonlin() object records the nonlinear equation which is solved, the Newton iteration formula, a bounding interval for the root, and the two bounds needed by procedure Newton to terminate properly. 

©20042024 Planet Quantum  Kelly Roach 