Skip to content

Commit aded8bb

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent e6f7074 commit aded8bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

physics/relativistic_velocity_summation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ def relativistic_velocity_summation(v1: float, v: float) -> float:
1818
>>> relativistic_velocity_summation(100000000, 299792458)
1919
Traceback (most recent call last):
2020
...
21-
ValueError: Speeds must not exceed light speed, and
21+
ValueError: Speeds must not exceed light speed, and
2222
the frame speed must be lower than the light speed!
2323
"""
2424
if v1 > c or v >= c or v1 < -c or v <= -c:
2525
raise ValueError(
26-
"Speeds must not exceed light speed, and
26+
"Speeds must not exceed light speed, and
2727
the frame speed must be lower than the light speed!"
2828
)
2929
return (v1 + v) / (1 + v1 * v / (c * c))

0 commit comments

Comments
 (0)