Borrar filtros
Borrar filtros

Using a while loop on a Taylor Series?

1 visualización (últimos 30 días)
Nick Haufler
Nick Haufler el 8 de Oct. de 2015
Comentada: Nick Haufler el 8 de Oct. de 2015
My script wont output anything for the difference. The file attached shows the taylor series equation which I put into the variable 'Estimate'.

Respuestas (1)

TastyPastry
TastyPastry el 8 de Oct. de 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 comentario
Nick Haufler
Nick Haufler el 8 de Oct. de 2015
Do I update the variable 'count' inside the while loop with count+1

Iniciar sesión para comentar.

Categorías

Más información sobre Loops and Conditional Statements en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by