/** A class of code for the function to be integrated
 *
 * @author Duncan Buell
 *
 * written: 14 October 2007
 *
**/
public class MyFunction
{

/* **************************************************************************** */
/** Put in a constructor just in case I want one later.
**/
  public MyFunction()
  {
  }
   
/* **************************************************************************** */
/** Evaluate the function
**/
  public double myEval(double x)
  {
    double y;
    double r = 1.0;

    y = Math.sqrt(r*r - x*x);

    return y;
  }
   
} // public class MyFunction

