Implementing a while loop into my code?
Show older comments
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?
Accepted Answer
More Answers (0)
Categories
Find more on Loops and Conditional Statements 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!