Skip to content

Commit 5b52fa3

Browse files
authored
Update RiemannIntegration.java
used interval notation in a comment to cater to math language
1 parent 49ae0ea commit 5b52fa3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/com/thealgorithms/maths/RiemannIntegration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,6 @@ public static void main(String[] args) {
8787
public static final void example() {
8888
final Function < Double, Double > xSquaredFunction = x -> Math.pow(x, 2); // Creates the function f(x) = x^2
8989
double result = RiemannIntegration.trapezoidalRiemannSum (xSquaredFunction, 0, 1, 9); // I find that an accuracy between 7 - 10 (inclusive) works best.
90-
System.out.println ("Integral of y = x^2 from x = 0 to x = 1: " + result);
90+
System.out.println ("Integral of y = x^2 on x E [0, 1]:" + result);
9191
}
9292
}

0 commit comments

Comments
 (0)