Skip to content

Commit 7ef047f

Browse files
authored
Update Relativity.java
Extra spaces added
1 parent a252e74 commit 7ef047f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/thealgorithms/physics/Relativity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public static double velocityAddition(double v1, double v) {
7777
if (Math.abs(v) >= SPEED_OF_LIGHT) {
7878
throw new IllegalArgumentException("Frame speed must be lower than the speed of light");
7979
}
80-
return (v1 - v)/(1 - v1*v/(SPEED_OF_LIGHT*SPEED_OF_LIGHT));
80+
return (v1 - v) / (1 - v1 * v / (SPEED_OF_LIGHT * SPEED_OF_LIGHT));
8181
}
8282
}
8383

0 commit comments

Comments
 (0)