Variable precision arithmetic in ode45 and others?
5 ビュー (過去 30 日間)
古いコメントを表示
Michael Croucher
2020 年 10 月 29 日
コメント済み: Walter Roberson
2022 年 6 月 23 日
Is it possible to use vpa in ordinary differential equation solvers like ode45?
0 件のコメント
採用された回答
Walter Roberson
2020 年 10 月 29 日
編集済み: Walter Roberson
2020 年 10 月 30 日
Sort of. The internal symbolic engine has two numeric ode routines. At the moment I do not know if there is a matlab level interface to those routines.
You might need to use feval(symengine) to access the routines.
9 件のコメント
その他の回答 (2 件)
John D'Errico
2020 年 10 月 29 日
Short answer - no.
Long answer - nnnnoooooo.
ODE45 uses only singles or doubles. Nothing symbolic. vpa is a symbolic tool.
2 件のコメント
John D'Errico
2020 年 10 月 29 日
I suppose it may happen one day. For example, vpaintegral appeared a few years ago. They could provide a tool to do the same for an ODE. But I don't see it happening soon.
Steven Lord
2020 年 10 月 30 日
What types of differential equations are you trying to solve that you need to use arbitrary precision arithmetic?
If you're trying to solve the ODE symbolically rather than numerically, take a look at the dsolve function in Symbolic Math Toolbox.
If you have computed a symbolic equation for the right-hand side of your system of ODEs, you can convert that into a form that the numeric ODE solvers in MATLAB (like ode45) can accept that operates on double arrays using odeFunction also in Symbolic Math Toolbox.
This documentation page may be of interest.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Ordinary Differential Equations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!