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!