• Download quadgui.m and polyinterp.m . Both of these programs were written by Cleve Moler.
  • Test "quadgui", which (when used without any arguments) integrates a function called "humps".
  • Use quadgui to estimate these integrals to a tolerance of 1.e-6:
  • Integral from 0 to 2 pi of cos(x).
  • Integral from 0 to 1 of humps.
  • Integral from .01 to 1 of 1/x.
  • Integral from 0 to pi of tan(sin(x))-sin(tan(x)).
  • Integral from 0 to 1 of sqrt(x).
  • Hand in

  • a table giving the number of function evaluations used in each case.
  • a discussion of why some integrals were harder than others.