(t,u,k=0.7,c=0.1,k3=1,
A=44.5,omega=1.1)
| 31 | from scipy.integrate import RK45 |
| 32 | import matplotlib.pyplot as plt |
| 33 | def Duff(t,u,k=0.7,c=0.1,k3=1, |
| 34 | A=44.5,omega=1.1): |
| 35 | return [u[1], -k*u[0]-c*u[1] - |
| 36 | k3*u[0]**3+A*np.sin(omega*t)] |
| 37 | T0, Tn = 0, 40 |
| 38 | U_0 = [0, 0] |
| 39 | t, u = [], [] |
nothing calls this directly
no outgoing calls
no test coverage detected