FPL Statistics Group
Quadrature (Numerical Integration) Java Package
Currently (as 2/12/03) this package contains only an unofficial
Java translation of the public domain
1-dimensional numerical integration routine Gaus8. Gaus8 was written
by R.E. Jones. It is part of the SLATEC library of public domain
numerical analysis routines. A FORTRAN version
of Gaus8 can be found by doing a search at
www.netlib.org.
Warning!!!
- This translation was performed by a user of numerical analysis
routines rather than a developer. When numerical integration routines
written in Java by professional
numerical analysts become
available, they should be used.
- I have tried to be careful with the coding and have done some
simple testing (see the Gaus8Test application).
However, it is quite possible that I have introduced
errors into the routine in the course of the translation. If you
detect bugs in Gaus8, PLEASE contact me
(Steve Verrill at sverrill@fs.fed.us
or 608-231-9375).
DISCLAIMER OF WARRANTIES
THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
THE AUTHOR/TRANSLATOR DOES NOT WARRANT, GUARANTEE OR MAKE ANY
REPRESENTATIONS REGARDING THE SOFTWARE OR DOCUMENTATION IN TERMS
OF THEIR CORRECTNESS, RELIABILITY, CURRENTNESS, OR OTHERWISE.
THE ENTIRE RISK AS TO THE RESULTS AND PERFORMANCE OF THE SOFTWARE
IS ASSUMED BY YOU. IN NO CASE WILL ANY PARTY INVOLVED WITH THE
CREATION OR DISTRIBUTION OF THE SOFTWARE BE LIABLE FOR ANY DAMAGE
THAT MAY RESULT FROM THE USE OF THIS SOFTWARE.
Sorry about that.
Documentation
Here is the
documentation generated by
javadoc. Also see the source code of Gaus8.java.
Installation
The code is available in
compressed tar,
Windows 95 zip,
and Windows 98 and later zip form.
Alternatively, the code comes in four files:
- Gaus8_fcn.java
- Gaus8.java
- Gaus8Test.java
- Console.java
Given the manner in which the routines are currently written,
you will need to import them (see the beginning of
Gaus8Test.java). All of the classes
will have to be placed
in subdirectories of a directory in your CLASSPATH.
For the quadrature classes, this subdirectory will
have to be called quadrature.
Console.class
will have to be placed in a
subdirectory called corejava.
Note that if you install the software in this manner,
then to run, for example, Gaus8Test you will have to issue the command:
java quadrature.Gaus8Test
Alternatively, you could remove the package and import statements
(other than import java.lang.*) in the source code,
and compile all of the necessary files in the same directory.
To run Gaus8 you will need to write a driver
class such as Gaus8Test that implements the Gaus8_fcn
interface. This class will have to include an f_to_integrate method.
Console.java
Console.java is software described in Cornell
and Horstmann's Core Java (SunSoft Press/Prentice-Hall).
(I like this book.)
It may be used for non-commerical purposes. I
only make use of it in the testing routines.
Support
If you have questions about this software,
or suggestions for improvement,
please contact me at
sverrill@fs.fed.us
or 608-231-9375.
[Forest Service]
[Forest Products
Lab]
[FPL Statistics Group]
Last modified on 2/12/03.
As of last midnight, this page had been accessed



times.