File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 55is not exceeded.
66Formulae : F = -k*x
77F: Force
8- k: Spring constant
9- x: displacement from the equilibrium position
8+ k: spring constant
9+ x: displacement
10+ x is the displacement from the equilibrium position
1011The negative sign indicates that the restoring force acts in the opposite
1112direction to the displacement, always working to bring the object back to
1213its original state.
1314Reference: https://en.wikipedia.org/wiki/Hooke%27s_law
1415"""
1516
1617
17- def hookes_law (k : float , x : float ) -> float :
18+ def hookes_law (spring_contant : float , displacement : float ) -> float :
1819 """
1920 Calculate the Hookes law from the given values of spring constant 'k'
2021 and the displacement 'x' from the equilibrium position.
You can’t perform that action at this time.
0 commit comments