multivariable dsolve. Can it be solved for multivariables?

조회 수: 10 (최근 30일)
jorge reula
jorge reula 2018년 9월 9일
댓글: Christopher Creutzig 2022년 2월 7일
Good day, I am solving a multivariable symbolic EDO, the issue is that when it results I get an error. What would be the problem? Does dsolve only serve to solve EDO of a single variable? I attach my code. Thank you very much.
if true
% code
syms H0 H1 m y wmax D x ro P(x,y) g
Eq_1=diff(P,x,y)==ro*(wmax^2*x-g*y)
cond=P(0,0)==0
Sol(x,y)=dsolve(Eq_1,cond)
end

답변 (1개)

Christopher Creutzig
Christopher Creutzig 2018년 12월 3일
You are trying to solve a PDE (partial differential equation), but dsolve only handles ODEs (ordinary differential equations), where all derivatives are with respect to the same variable. Which is what the error message says, using the terminology “independent variable”:
Error using dsolve>mupadDsolve (line 319)
Symbolic ODEs must have exactly one independent variable.
  댓글 수: 2
Darshan Soni
Darshan Soni 2022년 2월 4일
@Christopher Creutzig Then how can I solve a 2 variable Partial differential equation?
Christopher Creutzig
Christopher Creutzig 2022년 2월 7일
@Darshan Soni Symbolic Math Toolbox currently does not have PDE support. You can get numerical solutions with the PDE Toolbox.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Equation Solving에 대해 자세히 알아보기

태그

제품


릴리스

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by