In principle I think this should be pretty easy. I need to make a MAPLE code that uses loops and arrays to carry out the prcedure described here: http://people.revoledu.com/kardi/tutorial/ContinuedFraction/Decimal-Fraction-Conversion.htm
local Kmax, epsilon:
while i < Kmax and F[i]<epsilon do
i don't really understand why it's not working although i think it's to do with y and r.
any help appreciated. thanks.