Solve pde of three or more variables

Viewed 21

How to solve a pde with three or more variables in pytohn? For example:

f = Function('f')
u = f(x, y, z) 
ux = u.diff(x)
uy = u.diff(y)
uz = u.diff(z)
eq = Eq(y*ux-(x+z)*uy + y*uz, 0)
pdsolve(eq)

But i got the error:


NotImplementedError Traceback (most recent call last) in 5 uz = u.diff(z) 6 eq = Eq(y*ux-(x+z)uy + yuz, 0) ----> 7 pdsolve(eq)

2 frames /usr/local/lib/python3.7/dist-packages/sympy/solvers/pde.py in classify_pde(eq, func, dict, prep, **kwargs) 269 270 if func and len(func.args) != 2: --> 271 raise NotImplementedError("Right now only partial " 272 "differential equations of two variables are supported") 273

NotImplementedError: Right now only partial differential equations of two variables are supported

0 Answers
Related