Re: [Edu-sig] Brute force solutions

2005-09-24 Thread [EMAIL PROTECTED]
The fun part here is we can use numerator/denominator syntax with open-ended precision integers, to like express sqrt of 19 as some humongous fraction (as many digits as memory will allow). This lets us far surpass the floating point barrier. For example, the sqrt of 19 is rougly:

Re: [Edu-sig] Brute force solutions

2005-09-24 Thread [EMAIL PROTECTED]
n = ((pow(orig,0.5) + addterm)/denom)**2 H, this may be the Achilles heal of my project, to not use any sqrt finder in the process of finding a sqrt using continued fractions. Back to the drawing board? Kirby

Re: [Edu-sig] Brute force solutions

2005-09-24 Thread Scott David Daniels
[EMAIL PROTECTED] wrote: The fun part here is we can use numerator/denominator syntax with open-ended precision integers, to like express sqrt of 19 as some humongous fraction (as many digits as memory will allow). This lets us far surpass the floating point barrier. OK, here we go: def