This zip file contains the Java programs (and source code) that were used in
the book. You will need at least Java 1.4 to run the programs. Run the command

  java -version

in a terminal window to find which version you have.

The included files are:

newton.class: Java program for using Newton's algorithm to find critical
              points of f(x,y)=x^3 - xy - x + xy^3 - y^4 (p.91, Section 2.6).
              Usage: java newton <x-coordinate> <y-coordinate>
              Example: To use the initial point (1,0), run this command:
              java newton 1 0

newton.java: Source code for the newton.class program. Compile with the command
             javac newton.java
             to create the newton.class file.

montecarlo.class: Java program for approximating the double integral of
                  f(x,y)=8x+6y over the rectangle [0,1]x[1,2], using the Monte
                  Carlo method (p.114, Section 3.4).
                  Usage: java montecarlo <N>
                  Example: To use 100 random points, run this command:
                  java montecarlo 100

montecarlo.java: Source code for the montecarlo.class program. Compile with
                 the command
                 javac montecarlo.java
                 to create the montecarlo.class file.

montecarlo2.class: Java program for approximating the double integral of
                   f(x,y)=8x+6y over a nonrectangular region, using the Monte
                   Carlo method (p.115-116, Section 3.4).
                   Usage: java montecarlo2 <N>
                   Example: To use 1000 random points, run this command:
                   java montecarlo2 1000

montecarlo2.java: Source code for the montecarlo2.class program. Compile with
                  the command
                  javac montecarlo2.java
                  to create the montecarlo2.class file.
