Problem with estimating error

Hi,
We are trying to calculate the error in a double pendulum with Runge Kutta method.
We first run the program for an h = 0.001 and saved the 4 values inside of a reference vector. We then normalized the vector and compared it's norm against results for bigger h.
The problem is that although h is divided by two in every step, the error seems to be growing.
Why is that happening?

댓글 수: 6

Walter Roberson
Walter Roberson 2019년 5월 1일
Heisenberg Uncertainty Principle. At some point, reducing the step size must increase the error, as otherwise you would be able to pinpoint both the position and the momentem simultaneously.
am
am 2019년 5월 1일
Hi, this method does not work for even big h such as 0.1.
Can you please look at our code?
Walter Roberson
Walter Roberson 2019년 5월 1일
0.1 Planck lengths is too small to work with. There are theoretical reasons to believe that space itself might not exist in any continuous form at scales that small.
Walter Roberson
Walter Roberson 2019년 5월 1일
Undefined function or variable t in the RKstep call.
You might be changing the h, but you are not resetting the time.
am
am 2019년 5월 1일
I moved in all the vectors and the t, the error is now getting smaller!
But it has not accurace O(h⁴) as expected?
am
am 2019년 5월 1일
Additionally, if I choose a smaller h, than I have a bigger error. Is it what you meant with Heinseberg uncertainity principle?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Numerical Integration and Differential Equations에 대해 자세히 알아보기

태그

질문:

am
2019년 5월 1일

댓글:

am
2019년 5월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by