Skip to content

Commit e6f7074

Browse files
authored
Lines divided
1 parent 291588c commit e6f7074

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

physics/relativistic_velocity_summation.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@ 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 the frame speed must be lower than the light speed!
21+
ValueError: Speeds must not exceed light speed, and
22+
the frame speed must be lower than the light speed!
2223
"""
2324
if v1 > c or v >= c or v1 < -c or v <= -c:
2425
raise ValueError(
25-
"Speeds must not exceed light speed, and the frame speed must be lower than the light speed!"
26+
"Speeds must not exceed light speed, and
27+
the frame speed must be lower than the light speed!"
2628
)
2729
return (v1 + v) / (1 + v1 * v / (c * c))
2830

0 commit comments

Comments
 (0)