フィルターのクリア

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 Center および File ExchangeSymbolic Math Toolbox についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by