No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I have been using Super Duper to create a bootable copy of my hard drive nightly. (This is in addition to using Time Machine.) My hard drive has a capacity of 1TB of which 250GB is used. My backup drive is a firewire 800 WD MyBook 1TB. I noticed that … |
|
The following code iteratively calculates continued fractions. I'm having trouble separating the numerator and denominator from the returned value. [code=python]def cf3(terms, iterations): answer = 0 for n in range(iterations, 0, -1): answer = Fraction(1, terms[n] + answer) answer += Fraction(terms[0], 1) return answer [/code] The following is sample output showing … |