Hi, so I want to write a program that represents anything as a continued fraction (please see http://en.wikipedia.org/wiki/Continued_fraction).
Here's my code (something's not quite working). I think that the problem is that I have to stop immediately after int(alpha)=alpha, but I don't really see how.
The problem is that it's not returning accurate values. I think that I need to make that loop run until the moment that int(alpha)=alpha, and put down that value as the last one, but I don't know how to do that.