Choosing more stringent values for RelTol and AbsTol in ode45, for smooth functions such as sin(t) or cos(t), does not change the numerical solutions,

조회 수: 2 (최근 30일)
Hi,
I'm playing with the RelTol and AbsTol options for the ode45 solver, choosing more stringent values such as 1e-10 for both. However, for smooth solutions such as y(t) = sin(t), more stringent RelTol and AbsTol values do not bring back different solutions. Why is this? Is it because for smooth functions, the time-stepping errors are already so small that adjusting RelTol and AbsTol to be more stringent will not have an effect on the accuracy of solutions?
The ode45 solver uses approximately double the amount of time-steps (e.g. 500 vs. 1000 steps) with 1e-10 error tolerances set, with no different solutions for smooth functions.
Thanks,

답변 (0개)

카테고리

Help CenterFile Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기

태그

제품


릴리스

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by