ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/loops/IntegrateGamma.java
(Generate patch)

Comparing jsr166/src/test/loops/IntegrateGamma.java (file contents):
Revision 1.8 by jsr166, Sun Oct 21 06:40:21 2012 UTC vs.
Revision 1.10 by jsr166, Thu Jan 15 18:42:39 2015 UTC

# Line 8 | Line 8 | import java.util.concurrent.*;
8  
9   /**
10   * Adapted from FJTask version.
11 < * Sample program using Guassian Quadrature for numerical integration.
11 > * Sample program using Gaussian Quadrature for numerical integration.
12   * Inspired by a
13   * <A href="http://www.cs.uga.edu/~dkl/filaments/dist.html"> Filaments</A>
14   * demo program.
# Line 91 | Line 91 | public class IntegrateGamma {
91          }
92      }
93  
94
94      static class Integrator {
95          final Function f;      // The function to integrate
96          final double errorTolerance;
# Line 114 | Line 113 | public class IntegrateGamma {
113              return q.area;
114          }
115  
117
116          /**
117           * FJTask to recursively perform the quadrature.
118           * Algorithm:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines