# | Line 12 | Line 12 | import java.util.concurrent.*; | |
---|---|---|
12 | * Inspired by a | |
13 | * <A href="http://www.cs.uga.edu/~dkl/filaments/dist.html"> Filaments</A> | |
14 | * demo program. | |
15 | – | * |
15 | */ | |
17 | – | |
16 | public class IntegrateGamma { | |
17 | /** for time conversion */ | |
18 | static final long NPS = (1000L * 1000 * 1000); | |
# | Line 93 | Line 91 | public class IntegrateGamma { | |
91 | } | |
92 | } | |
93 | ||
96 | – | |
94 | static class Integrator { | |
95 | final Function f; // The function to integrate | |
96 | final double errorTolerance; | |
# | Line 116 | Line 113 | public class IntegrateGamma { | |
113 | return q.area; | |
114 | } | |
115 | ||
119 | – | |
116 | /** | |
117 | * FJTask to recursively perform the quadrature. | |
118 | * Algorithm: |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |