필터 지우기
필터 지우기

Using a while loop on a Taylor Series?

조회 수: 1 (최근 30일)
Nick Haufler
Nick Haufler 2015년 10월 8일
댓글: Nick Haufler 2015년 10월 8일
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일
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

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

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by