We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a252e74 commit 7ef047fCopy full SHA for 7ef047f
1 file changed
src/main/java/com/thealgorithms/physics/Relativity.java
@@ -77,7 +77,7 @@ public static double velocityAddition(double v1, double v) {
77
if (Math.abs(v) >= SPEED_OF_LIGHT) {
78
throw new IllegalArgumentException("Frame speed must be lower than the speed of light");
79
}
80
- return (v1 - v)/(1 - v1*v/(SPEED_OF_LIGHT*SPEED_OF_LIGHT));
+ return (v1 - v) / (1 - v1 * v / (SPEED_OF_LIGHT * SPEED_OF_LIGHT));
81
82
83
0 commit comments