Apply Hooke's law to find the restoring force of a spring from its stiffness (spring constant) and displacement from equilibrium.
輸入勁度係數 k 與形變數 x,求彈力大小。