[Jprogramming] Code for multiplying continued fractions?
Zsbán Ambrus
ambrus at math.bme.hu
Thu Apr 9 02:48:18 HKT 2009
On Wed, Apr 8, 2009 at 7:20 PM, Henry Rich <HenryHRich at nc.rr.com> wrote:
> The continued fractions I want to work with are infinite repeating,
Those represent quadratic irrationals, that is, numbers built from
integers by addittion, multiplication, division, and square root,
don't they? I once attempted to write (non-J) code that does
computations on such numbers, but represented as such symbolic
formulae built from these operations, not continued fractions. I
abandonned it (though I might later try to develop it more) and I'm
not sure if it gets into an infinite loop or is just really slow. The
code is unoptimized, I wrote the bare minimum that I think is enough
to make it run in finite time for all cases. I can send it if you're
interested.
Ambrus
More information about the Programming
mailing list