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 074967b commit 723cc86Copy full SHA for 723cc86
1 file changed
physics/hookes_law.py
@@ -5,16 +5,17 @@
5
is not exceeded.
6
Formulae : F = -k*x
7
F: Force
8
-k: Spring constant
9
-x: displacement from the equilibrium position
+k: spring constant
+x: displacement
10
+x is the displacement from the equilibrium position
11
The negative sign indicates that the restoring force acts in the opposite
12
direction to the displacement, always working to bring the object back to
13
its original state.
14
Reference: https://en.wikipedia.org/wiki/Hooke%27s_law
15
"""
16
17
-def hookes_law(k: float, x: float) -> float:
18
+def hookes_law(spring_contant: float, displacement: float) -> float:
19
20
Calculate the Hookes law from the given values of spring constant 'k'
21
and the displacement 'x' from the equilibrium position.
0 commit comments