Day 2: Numerical Integration


Exercise

Write a Java program to compute the definite integral of a given function using numerical methods.

Introduction

For those unfamiliar with calculus and, specifically, integrals, all you need to know for this exercise is that the definite integral of a function determines the area under that function's curve. Numerical integration allows for the approximation of this area without determining the indefinite integral (or antiderivative) of the function. An antiderivative is another function which is obtained by manipulating the original function in a specific way.

Algorithm

  1. Choose a method of numerical integration to implement:
  2. Implement the core functionality using a text-based interface for I/O.
  3. Build a GUI to wrap your implementation.

Resources

Hints


Return Home