필터 지우기
필터 지우기

solve second order ODE equation

조회 수: 1 (최근 30일)
Mark
Mark 2022년 5월 28일
댓글: Torsten 2022년 5월 29일
I try to symbolic the function psi_m(y) and psi_m(x) and solve the equation b with matlab obe solver. The results should come out as equation c.
However my matlab script indicate the error. Could you help me take a look my matlab code below to debug?
Thank you very much!!
clc
clear
syms psi_m(y) psi_m(x) lamda_m psi(x,y) s_sqar
psi(x,y)=psi_m(y)*sin(lamda_m*x)-psi_m(x)*sin(lamda_m*y)
delta_psi(x,y)=diff(psi(x,y),x,2)+diff(psi(x,y),y,2)
ode=delta_psi(x,y)-s_sqar*psi(x,y)==0
psi_mSol(x)=dsolve(ode)
  댓글 수: 2
Walter Roberson
Walter Roberson 2022년 5월 28일
I do not think you can have the same function with two different variables
Torsten
Torsten 2022년 5월 29일
psi_m (x) = sinh(k_m*x)
is not a solution of the differential equation
psi_m''(x) + (lambda_m^2+s^2)*psi_m(x) = 0,
but of the differential equation
psi_m''(x) - (lambda_m^2+s^2)*psi_m(x) = 0
if k_m is set to
k_m = sqrt(lambda_m^2+s^2)

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by