필터 지우기
필터 지우기

recurrence relation for any given 'n'.

조회 수: 7 (최근 30일)
Venkata
Venkata 2017년 6월 20일
댓글: Venkata 2017년 7월 7일
How to compute A_j^(2n) for any 'n' using A_j^(2).
Here, n=2,3,4,...; and j=1:n-1.
Any kind of help is highly appreciated.
Thank you.

채택된 답변

Walter Roberson
Walter Roberson 2017년 6월 21일
If you have the Symbolic toolbox, you could use evalin(symengine) or feval(symengine) to call into MuPAD in order to take advantage of solve() of a rec() recurrence structure
  댓글 수: 11
Walter Roberson
Walter Roberson 2017년 7월 6일
I tossed together the attached. I did not test it with functions that return multiple outputs.
Aj_2n_better and Aj_2 are the same as last time. memoizefun is new (I just wrote it) and A_driver_cache is almost the same as the previous A_driver_better except for calling memoizefun instead of R2017a's memoize()
Note: you should test that the results are the same as the previous... they should be, but I did not test that.
Venkata
Venkata 2017년 7월 7일
Dear Roberson,
Sure, I'll check them.
I owe you big time, Mr. Roberson.
Thanks a ton.

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

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by