[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ratio implementation

From: Han-Wen Nienhuys
Subject: ratio implementation
Date: Mon, 28 Jul 2003 14:08:38 +0200

address@hidden writes:
> There is an implementation of ratios for Guile (based on CVS version
> of 27-Jul-03) at
> Rather than send a huge diff, I placed the new versions of the changed
> files (all from the libguile directory) in the tarball along with
> *.diff showing the changes.  I added numerator, denominator,
> rationalize and ratio?, and at the C level scm_make_ratio and
> scm_i_ratio2real (should it be scm_ratio2dbl?).  "ratio?" is needed
> because "rational?" returns #t if passed a real -- there has to be
> some way to distiguish a ratio from a real. An alternative would be to
> make "rational?"  rational.
> I don't know how the FSF/GPL copyright stuff works, but I did this
> work on my own time, did not look at any other implementation, and
> hereby donate the code to you.  I'd be happy to "sign the papers".


(If that goes through, then we can scrap our own support for Rational
numbers in LilyPond!)


Han-Wen Nienhuys   |   address@hidden   | 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]