We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a01c7e4 commit 5b573f9Copy full SHA for 5b573f9
physics/relativistic_velocity_summation.py
@@ -26,8 +26,12 @@ def relativistic_velocity_summation(
26
...
27
ValueError: Speeds must not exceed light speed...
28
"""
29
- if (object_velocity > c or frame_velocity >= c or
30
- object_velocity < -c or frame_velocity <= -c):
+ if (
+ object_velocity > c
31
+ or frame_velocity >= c
32
+ or object_velocity < -c
33
+ or frame_velocity <= -c
34
+ ):
35
raise ValueError(
36
"Speeds must not exceed light speed, and "
37
"the frame speed must be lower than the light speed!"
0 commit comments