Second Order Differential Equation Using Python

preview_player
Показать описание

Another way of solving a second order differential equation is using Sympy. This method gives analytical solution. The advantage is that you get the form of the solution. This allows us to know the function. This is of great values in science and mathematics. The video for this is given below.

Рекомендации по теме
Комментарии
Автор

I cant understand the line no 2. What do you mean by y, z=y ???

moirangthemsanahal
Автор

I didn´t quite understand why in sode we set z=y, could you give a little more insight please?

lLuckM
Автор

how can we solve the second-order heterogeneous ode? (form of y'' + y' + y = g)

수필누리
Автор

can we solve the differential equation using RK method of 2nd or 4th order in python?

yogirajput
Автор

plt.plot(x, sol[ ;, 0], sir could you please tell me what does this blank space mean

mohammadhamza
Автор

from scipy.integrate import odeint
import matplotlib.pyplot as plt
import numpy as np

def sode(y, x):
y, z=y
dydx=[z, 6*y-z]
return dydx

x=np.linspace(0, 1, 100)
sol=odeint(sode, [5, -5], x)
plt.plot(x, sol)

Isn't this the complete code?
For some reason, this is showing no result or error message or anything.
Can you help?

the_sophile
join shbcf.ru