Filter löschen
Filter löschen

Using a while loop on a Taylor Series?

1 Ansicht (letzte 30 Tage)
Nick Haufler
Nick Haufler am 8 Okt. 2015
Kommentiert: Nick Haufler am 8 Okt. 2015
My script wont output anything for the difference. The file attached shows the taylor series equation which I put into the variable 'Estimate'.

Antworten (1)

TastyPastry
TastyPastry am 8 Okt. 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 Kommentar
Nick Haufler
Nick Haufler am 8 Okt. 2015
Do I update the variable 'count' inside the while loop with count+1

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by