Clarifications on using dsolve

3 ビュー (過去 30 日間)
Hirak Doshi
Hirak Doshi 2015 年 3 月 5 日
編集済み: Mischa Kim 2015 年 3 月 5 日
In this we see that the answer contains a constant namely C22. If I want to extract just the function part ie 'sin(x)' without adding any condition how do I do that ?? Please help.

採用された回答

Mischa Kim
Mischa Kim 2015 年 3 月 5 日
編集済み: Mischa Kim 2015 年 3 月 5 日
Hirak, one simple way would be to add another initial condition (first derivative)
f = dsolve('D2y + y = 0','Dy(0) = 1','y(0) = 0',x)
f =
sin(x)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSymbolic Math Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by