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'.

답변 (1개)

TastyPastry
TastyPastry 2015년 10월 8일

0 개 추천

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

Nick Haufler
Nick Haufler 2015년 10월 8일
Do I update the variable 'count' inside the while loop with count+1

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

질문:

2015년 10월 8일

댓글:

2015년 10월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by