[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Axiom-developer] [Enhanced Fraction Domain] (new)
From: |
Bill Page |
Subject: |
[Axiom-developer] [Enhanced Fraction Domain] (new) |
Date: |
Sun, 27 Mar 2005 12:55:37 -0600 |
Changes
http://page.axiom-developer.org/zope/mathaction/EnhancedFractionDomain/diff
--
Original Date: Fri, 25 Mar 2005 12:01:44 -0600
Here is a serie of patch to enhance computation that involves fraction integer.
Do
<pre>
download gcl source, decompress this archive apply gcl.patch (this patch come
from gcl-2.6.5 but can probably be applied on 2.6.6).
recompress gcl, copy it to zips directory (keep the same name)
remove gcldir and gcl-2.6.* in lsp directory
patch the interpreter with interp.patch. (change behavior of coercion of
fraction(integer))
patch fraction.spad.pamphlet (handle fraction(integer) as integer i.e by gcl)
remove mnt/linux/algebra/FRAC.o, int/algebra/FRAC.NRLIB/code.o and
int/algebra/FRAC.spad
type make
remove mnt/linux/algebra/FRAC.o, int/algebra/FRAC.NRLIB/code.o and
int/algebra/FRAC.spad
type touch src/algebra/fraction.spad.pamphlet or open it in an editor and
resave it
type make
Have fun
</pre>
This involve one patch (gcl.patch) backported from gcl-2.7.0-cvs. It 's a
request made for use algorithm from libgmp in cancellation of
gcd in fraction.
Copying of this patch is GNU LIBRARY GENERAL PUBLIC LICENSE Version 2,
June 1991
<a href="gcl.patch">gcl.patch</a>
<a href="interp.patch">interp.patch</a>
<a href="fraction.patch">fraction.patch</a>
>From unknown Fri Mar 25 12:06:22 -0600 2005
From: unknown
Date: Fri, 25 Mar 2005 12:06:22 -0600
Subject: How to patch
Message-ID: <address@hidden>
Change in root of application to patch (for example with gcl cd gcl-2.6.5) and
type cat gcl.patch |patch -p0
If this doesn't work type cat gcl.patch |patch -p1
<pre>
p0 or p1 depends of your place in the tree
</pre>
>From unknown Fri Mar 25 12:13:42 -0600 2005
From: unknown
Date: Fri, 25 Mar 2005 12:13:42 -0600
Subject: Timing
Message-ID: <address@hidden>
This patch is just a code optimization and not a mathematical optimization
(algorithm)
matrix(FRAC INT,50,50) * matrix(FRAC INT,50,50):
<pre>
before: 3.17 sec
after: 0.83 sec
</pre>
Factor: 3.8192771084
Check it, test it and enhance it, Have fun and regards
>From unknown Sat Mar 26 04:03:05 -0600 2005
From: unknown
Date: Sat, 26 Mar 2005 04:03:05 -0600
Subject: New page
Message-ID: <address@hidden>
In-Reply-To: <address@hidden>
seems that the changes to axiom only work with gcl. Is this correct? J Weiss
>From unknown Sat Mar 26 06:02:15 -0600 2005
From: unknown
Date: Sat, 26 Mar 2005 06:02:15 -0600
Subject: No
Message-ID: <address@hidden>
Work with all implementations of common lisp. I use lisp rational. I just asked
to change some algorithms (euclidean) in gcl.
>From unknown Fri Mar 25 19:16:22 -0600 2005
From: unknown
Date: Fri, 25 Mar 2005 19:16:22 -0600
Subject: New page
Message-ID: <address@hidden>
Bill, Can you make a new page for this?
This looks strange... tested for several months.
--
forwarded from http://page.axiom-developer.org/zope/mathaction/address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Axiom-developer] [Enhanced Fraction Domain] (new),
Bill Page <=