Home /
Expert Answers /
Advanced Physics /
generate-a-pythhon-code-to-solve-the-following-second-orde-differential-equation-with-rk4-method-an-pa243
(Solved): Generate a Pythhon code to solve the following second-orde differential equation with RK4 method. An ...
Generate a Pythhon code to solve the following second-orde differential equation with RK4 method. An generate a graphic with the results
25.16 The motion of a damped spring-mass system (Fig. P25.16) is described by the following ordinary differential equation: mdt2d2x?+cdtdx?+kx=0 where x= displacement from equilibrium position (m),t= time (s), m=20?kg mass, and c= the damping coefficient (N?s/m). The damping coefficient c takes on three values of 5 (underdamped), 40 (critically damped), and 200 (overdamped). The spring constant k=20N/m. The initial velocity is zero, and the initial displacement x=1m. Solve this equation using a numerical method over the time period 0?t?15s. Plot the displacement versus time for each of the three values of the damping coefficient on the same curve.