I just started using Maple 10(old computer is destroyed), and it doesn't recognize some terms that I used to use with older Maple. Can someone convert this for me? Many thanks.
code:
if type( f, '+' ) then return...
Maple 10 don't recognize '+'
print ('a['||i||']'= a[i])
Maple 10...
I tried to do it backward, and I got this
p = ((2*n+1)^2)/6;
for k = n:-1:1
p = 6+(2*n-1)^2/p;
end
f=p+3
How to fix it? I think it's closer to the right answer.
Homework Statement
Via iteration. A continued fraction for pi is:
Write an algorithm to compute this to n terms using Matlab.
1st term would be 3+1/9
The Attempt at a Solution
p = '1';
for k = 1:n
p=3+(-1+2^n)/(3+p);
end
p
I'm very new to programming, and I can...