Boundary Value Problem\ Symbolic solution

I wanted to solve a sturm-liouville boundary value problem using the symbolic command dsolve, and I wanted to avoid using character vectors input as MATLAB suggests. but this wrong asnwer apears when using the classical symbolic way:

 採用された回答

Paul
Paul 2021 年 6 月 15 日

1 投票

Need to use sym(pi)
syms y(t)
cond = [y(0)==0,y(1)==0];
X = dsolve(diff(y,t,2)+sym(pi)^2*y==0,cond)
X = 

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeSymbolic Math Toolbox についてさらに検索

製品

リリース

R2021a

質問済み:

2021 年 6 月 14 日

コメント済み:

2021 年 6 月 15 日

Community Treasure Hunt

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

Start Hunting!

Translated by