CMSI 186 - Problem Set #4
Riemann Integration
Due Tuesday, March 24

  • Overview

  • Ground Rules
    1. Make Riemann.java, which can integrate various functions that are "built in" to the program. Here are some examples of how it might be invoked:
    2. In general, the program will be invoked like this:

    3. Note that some functions (e.g., polynomials) need the additional descriptors (for their coefficients), while other functions (like sin and sqrt) do not.
    4. If the program is invoked incorrectly, it should output a clear, detailed message that explains precisely how to use it.
    5. As always, a comprehensive set of tests should be written before you start coding the other key method(s). Since you need method main() to run your program, put the tests in another method, e.g., private static void runMyTests(), and design your program so that

      runs the tests.
    6. Try to implement as many interesting functions as possible, including:


    Revised: March 5, 2009