Skip to content

Commit 77382d1

Browse files
authored
Update hookes_law.py
1 parent 723cc86 commit 77382d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

physics/hookes_law.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def hookes_law(spring_contant: float, displacement: float) -> float:
2626
>>> hookes_law(300, 3)
2727
-900
2828
"""
29-
return round(-k * x, 2)
29+
return round(-spring_constant * displacement, 2)
3030

3131

3232
if __name__ == "__main__":

0 commit comments

Comments
 (0)