How can I solve this problem?

조회 수: 1 (최근 30일)
Stefanescu Traian
Stefanescu Traian 2017년 1월 9일
댓글: Walter Roberson 2017년 1월 9일
cos(0.2) with the relation (photo)(with 10 and 50 terms) and direct function exponential;observe a relationship recurrence between 2 terms successive Ti+1 and T1.

채택된 답변

Roger Stafford
Roger Stafford 2017년 1월 9일
In “ observe a relationship recurrence between two successive terms, Ti+1 and T1 ” I believe you are being asked how the n+1-st term relates to the n-th term in the series for cosine. Note that if (-1)^n*x^(2*n)/(2*n)! is one term and (-1)^(n+1)*x^(2*(n+1))/(2*(n+1))! is the next term then the second is equal to the first multiplied by -x^2/((2*n+1)*(2*n+2)).
  댓글 수: 2
Stefanescu Traian
Stefanescu Traian 2017년 1월 9일
I see and I agree.But I also have to make a code which work and I start make it but I don't know what is missing or how to move on.So here it how I started: for i=1:length(x) (so x have to be first 10 and then 50) and now I don't know how to continue I mean mathematic I understand but to make it in a code...
Walter Roberson
Walter Roberson 2017년 1월 9일
You would go through the loop generating terms and adding them to a running total. But instead calculating each term from scratch, remember the previous term and make the minimal change to it required to calculate the new term.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by