Using a while loop on a Taylor Series?

My script wont output anything for the difference. The file attached shows the taylor series equation which I put into the variable 'Estimate'.

Risposte (1)

TastyPastry
TastyPastry il 8 Ott 2015
You need to update your variable "count". Your function repeatedly calculates the value when count = 1, so naturally on the second time through the two estimates are equal.

1 Commento

Do I update the variable 'count' inside the while loop with count+1

Accedi per commentare.

Categorie

Scopri di più su Loops and Conditional Statements in Centro assistenza e File Exchange

Richiesto:

il 8 Ott 2015

Commentato:

il 8 Ott 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by