public class QuadratureEx4 extends Object
Quadrature Example 4: Approximates a trigonometric integral.
The integral of $$\int_0^1 \cos(ax)dx$$ is computed for \( a=10^4 \) and compared to its expected value. Because the function is highly oscillatory, the quadrature rule is set to 6. The relative error tolerance is also set.Constructor and Description |
---|
QuadratureEx4() |
public static void main(String[] args)
Copyright © 2020 Rogue Wave Software. All rights reserved.