You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @param accuracy The accuracy of the integration. It is recommended to keep this less than 10. Each sub-interval will have a width of {@code 10^(-accuracy)}.
19
19
* @return The approximate value of the definite integral, calculated using the left Riemann Sum.
for (doublex = lowerBoundary; x < upperBoundary; x += deltaX) {
@@ -33,7 +33,7 @@ public double leftRiemannSum(final Function<Double, Double> function, final doub
33
33
* @param accuracy The accuracy of the integration. It is recommended to keep this less than 10. Each sub-interval will have a width of {@code 10^(-accuracy)}.
34
34
* @return The approximate value of the definite integral, calculated using the right Riemann Sum.
@@ -50,7 +50,7 @@ public double rightRiemannSum(final Function<Double, Double> function, final dou
50
50
* @param accuracy The accuracy of the integration. It is recommended to keep this less than 10. Each sub-interval will have a width of {@code 10^(-accuracy)}.
51
51
* @return The approximate value of the definite integral, calculated using the midpoint Riemann Sum.
for (doublex = lowerBoundary + accuracy / 2.0; x < upperBoundary; x += accuracy) {
@@ -66,7 +66,7 @@ public double midpointRiemannSum(final Function<Double, Double> function, final
66
66
* @param accuracy The accuracy of the integration. It is recommended to keep this less than 10. Each sub-interval will have a width of {@code 10^(-accuracy)}.
67
67
* @return The approximate value of the definite integral, calculated using the trapezoidal Riemann Sum.
0 commit comments