How would I solve y'' = sinh(y) using finite differences?
古いコメントを表示
Hello,
I've tried a few things like:
N = 50;
A = toeplitz([2 -1 zeros(1, N-2)]);
x = linspace(-1, 1, N)';
y = A\sinh(x);
Of course, what happens is that is solves for y'' = sinh(x), not sinh(y). How can I make this solve for sinh(y)?
Thanks,
Mark
4 件のコメント
Matt Tearle
2011 年 2 月 26 日
Is there a reason it has to be done with FD? Is this a problem for coursework? In which case, are there any further guidelines (regarding what you can/can't/must/should do)?
Matt Fig
2011 年 2 月 26 日
In addition to Matt's comments, what are the boundary conditions?
Mark
2011 年 2 月 26 日
Mark
2011 年 2 月 26 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Systems of Nonlinear Equations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!