使用 sympy 或 matlab 求解 PDE
Solving a PDE with sympy or matlab
我想知道如何用sympy或matlab求解下面的偏微分方程
提前致谢。
我刚刚用 sympy 解决了它
import sympy as sp
x1, x2 = sp.symbols('x1, x2')
f = sp.Function('f')
phi = f(x1, x2)
eq = phi.diff(x1) * sp.cos(x2) + phi.diff(x2)
print(sp.pdsolve(eq)) # f(x1, x2) == F(-x1 + sin(x2))
我想知道如何用sympy或matlab求解下面的偏微分方程
提前致谢。
我刚刚用 sympy 解决了它
import sympy as sp
x1, x2 = sp.symbols('x1, x2')
f = sp.Function('f')
phi = f(x1, x2)
eq = phi.diff(x1) * sp.cos(x2) + phi.diff(x2)
print(sp.pdsolve(eq)) # f(x1, x2) == F(-x1 + sin(x2))