Implementing a while loop into my code?
Ältere Kommentare anzeigen
I attached the script for my code. I want a whike loop that will calculate the estimate for the sine of the angle by adding one additional term from the Taylor Series polynomial (which is the Estimate= equation) each iteration through the loop. The while loop should continue as long as the absolute value of the difference between the most recent estimate and the previous estimate exceeds 0.00001 (1e-5). Is my code correct, Do i need to move my Error line up in the while loop, so it keeps running?
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!