Math-305, Numerical Methods & Matrices
Section 1.3 — Newton's Method

Dr. Kevin G. TeBeest

 

After completing the previous assignment on the printf command, change your Maple code for the bisection method so that it uses formatted printing and prints:
  1. the iteration number as an integer to 5 digits,
  2. each iterate xm in floating point (decimal) form showing 8 decimal places,
  3. f(xm) in scientific notation showing 6 decimal places, and
  4. the interval length in scientific notation showing 5 decimal places.
YOU CANNOT SIMPLY REPLACE lprint WITH printf ! Doing so will not work. If you have problems using printf on this assignment or on Program Assignment 1, I WILL instruct you to carefully and thoroughly study this tutorial and watch the video tutorials I posted! They CLEARLY explain how to use printf. From now on we will use the printf command when printing output in table form.

Return to main index