Skip to content

Commit eb51abd

Browse files
authored
Update Volume.java
1 parent d2ef29f commit eb51abd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,6 @@ public static double volumeTorus(double majorRadius, double minorRadius) {
136136
* @return volume of the ellipsoid
137137
*/
138138
public static double volumeEllipsoid(double a, double b, double c) {
139-
return 4 / 3 * Math.PI * a * b * c;
139+
return (4 * Math.PI * a * b * c) / 3;
140140
}
141141
}

0 commit comments

Comments
 (0)