Mass - spring systemA spring hangs vertically with the free end of the spring at $y = 0$. When a weight with a mass of g is attached to a spring, the spring stretches by cm ($y =$ - m). The weight is pulled down so that spring is stretched a further 3 cm. The weight is then released and the spring initially pulls it up. There is a frictional force that points in the opposite direction from the velocity of the weight, $\vec{F}_{fric}= -0.1\frac{d\vec{y}}{dt}$. After a long time the spring stops moving and returns to the position $y =$ - m. Use the second order differential equation solver to determine the motion of the weight as a function of time, $y(t)$. The acceleration of gravity is $g=9.81$ m/s². |