ode solvers state solution numerical errors

5 次查看(过去 30 天)
Dear All,
I am wondering about the numerical errors in the state solution obtained from using the ode solvers in MATLAB. How accurate are the state solutions obtained from the solvers? Could you please explain in terms of the discretization error, round off error, and floating point arithematics, in terms of how much error is expected using the big O notation?
Thank you for your help!
Sincerely,
Tae

回答(1 个)

Torsten
Torsten 2022-4-19
Look at the references at the bottom of the pages describing the codes, e.g. at the bottom of
and
  2 个评论
Taehun Kim
Taehun Kim 2022-4-19
编辑:Taehun Kim 2022-4-19
Thank you! I looked at the reference but they are quite hard for me to fully understand. I am looking for the possible error in the numerical solution of the ODEs solved by MATLAB ode solvers. In a model that I have, there is a term constructed with component-wise subtracting two vectors, each defined by multiplying states variables, that are in the similar magnitude, hance causing the catastrpohic cancellation problem. The order of the magnitude in the comptued difference term is and we multiply the vector by a large constant to obtain the final result. I am wondering if the state solution error is behind the scene, causing the erratic behavior in my solution.
Taehun Kim
Taehun Kim 2022-4-20
Thank you for your help! I talked to my friends and we learned that we can adjust the absolute and relative tolerances to get rid of the errorenous behavior!

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Ordinary Differential Equations 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by