Infinite Loop help Riemann sums
이전 댓글 표시
For some reason it's get stuck in an infinite loop. The programs says line 8 is the problem so the "first = first" line so I'm assuming its the bound problem? I don't see the problem any suggestions?
Note: my functions needs to give me an approx that has an difference from the previous estimate less than the tol that's why I'm running a while and for loop.
댓글 수: 3
Walter Roberson
2013년 2월 24일
I suggest you step through it line by line with the debugger.
Azzi Abdelmalek
2013년 2월 24일
It's difficult to say if we don not know a,b,tol and your function f.
Kenny
2013년 2월 24일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Mathematics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!