From: Marnen Laibow-Koser Date: 2009-11-19T11:38:19+09:00 Subject: Re: Exact (LISP-ish) calculations in Ruby? Ken Bloom wrote: [...] >> Wiring Rational into Numeric#/ shouldn't be too hard. I'm not sure how >> to deal with square roots without lots of special cases, however. >> > > Umm, there's a standard library for wiring in Rational: > > require 'mathn' Great! I didn't know about that. Best, -- Marnen Laibow-Koser http://www.marnen.org marnen@marnen.org -- Posted via http://www.ruby-forum.com/.