It is possible to use the Aldor compiler WebSite:www.aldor.org to compile functions which you then can use from FriCAS. For details see: Support for domains and packages is now in the testing stage. The FriCAS/Aldor interface is part of the current FriCAS source distribution. Ralf Hemmecke updated the work of Peter Broadbery and integrated it into FriCAS. In FriCAS you can now simply say: ./configure --enable-aldor && make && make install which will compile a file libaxiom.al and thus make it possible to use the Aldor compiler for FriCAS. Of course, you must have the latest aldor compiler installed. There is just one issue left that is connected to either the Aldor compiler or FriCAS. See Issues and links therein for more details. It was possible to use Aldor interface on MathAction including FriCASWiki. But current Aldor does not build on machine running FriCASWiki. So, until the problem is resolved you can not use Aldor on this website. Instruction below describe how such usage is supposed to work. Aldor on MathActionThis is a simple example of how to use Aldor on MathAction. To compile an Aldor function, for example this non-recursive method to compute a factorial, in MathAction the Aldor code appears between \begin{aldor}[fact] ... \end{aldor} tags on the edit page. aldor #include "axiom.as" aldor Compiling FriCAS source code from file /var/lib/zope2.10/instance/axiom-wiki/var/LatexWiki/fact.as using AXIOM-XL compiler and options -O -Fasy -Fao -Flsp -laxiom -Mno-ALDOR_W_WillObsolete -DAxiom -Y $AXIOM/algebra -I $AXIOM/algebra Use the system command )set compiler args to change these options. The )library system command was not called after compilation. The optional [name] parameter is used to name the compiled library
file which can be used later on another page in a Now call the function in Axiom as you would any other. First get the library fricas )lib fact fricas Reading /var/aw/var/LatexWiki/fact.asy Now we test it: fricas fact(11) If you care to, you can also look at the Aldor source generated lisp code and the final compiled result Here is an example from WebSite:www.aldor.org/docs/HTML/chap18.html aldor #include "axiom.as" #pile aldor Compiling FriCAS source code from file /var/lib/zope2.10/instance/axiom-wiki/var/LatexWiki/2504912445765138530-25px004.as using AXIOM-XL compiler and options -O -Fasy -Fao -Flsp -laxiom -Mno-ALDOR_W_WillObsolete -DAxiom -Y $AXIOM/algebra -I $AXIOM/algebra Use the system command )set compiler args to change these options. The )library system command was not called after compilation. fricas m := matrix[[1/2,
Type: Matrix(Fraction(Integer))
fricas s := symmetricPart m See also the more complex examples: More Examples Having put the following simple domain in a file aldor #include "axiom.as" aldor Compiling FriCAS source code from file /var/lib/zope2.10/instance/axiom-wiki/var/LatexWiki/4005392542604933580-25px006.as using AXIOM-XL compiler and options -O -Fasy -Fao -Flsp -laxiom -Mno-ALDOR_W_WillObsolete -DAxiom -Y $AXIOM/algebra -I $AXIOM/algebra Use the system command )set compiler args to change these options. The )library system command was not called after compilation. I compiled it with Aldor as above. In Axiom you should do: )co test.as fricas )sh Test fricas fact(5)$Test Known Problems see Issue #219 Here is a precomputed libaxiom.al that has been produced with src_aldor2.tgz and FriCAS (rev 286). Building the Aldor interface --Bill Page, Mon, 01 Aug 2011 08:28:48 -0700 reply This page is quite out of date. FriCAS configure now has an option:
# configure --enable-aldor If aldor is installed and working on your system, then the above command will build the interface. I build FriCAS using SBCL but there seems to be a problem introduced with the most recent release of FriCAS, so you should use an earlier release such as: svn co https://fricas.svn.sourceforge.net/svnroot/fricas/releases/1.1.2 fricas-1.1.2 |