Infinite Loop help Riemann sums
Show older comments
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 Comments
Walter Roberson
on 24 Feb 2013
I suggest you step through it line by line with the debugger.
Azzi Abdelmalek
on 24 Feb 2013
It's difficult to say if we don not know a,b,tol and your function f.
Kenny
on 24 Feb 2013
Accepted Answer
More Answers (0)
Categories
Find more on Mathematics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!