And below an Aldor version of the Fibonacci function that resembles a definition done in Haskell. fricas (1) -> <aldor> #include "axiom" Z ==> Integer; ZZ ==> Z -> Z; -- Haskell -- fiblist = 1 : 1 : (zipWith (+) fiblist (tail fiblist)) import from Z; zipWith(op: (Z, fricas Compiling FriCAS source code from file /var/lib/zope2.10/instance/axiom-wiki/var/LatexWiki/1094142832394199181-25px001.as using Aldor compiler and options -O -Fasy -Fao -Flsp -lfricas -Mno-ALDOR_W_WillObsolete -DFriCAS -Y $FRICAS/algebra -I $FRICAS/algebra Use the system command )set compiler args to change these options. "/var/lib/zope2.10/instance/axiom-wiki/var/LatexWiki/1094142832394199181-25px001.as", fricas [fib n for n in 1..10] And here the same program written for Aldor without PanAxiom. Compile and run as follows: aldor -laldor -fx fib.as && ./fib aldor #include "aldor" #include "aldorio" aldor Compiling FriCAS source code from file /var/lib/zope2.10/instance/axiom-wiki/var/LatexWiki/5940177716537504213-25px003.as using Aldor compiler and options -O -Fasy -Fao -Flsp -lfricas -Mno-ALDOR_W_WillObsolete -DFriCAS -Y $FRICAS/algebra -I $FRICAS/algebra Use the system command )set compiler args to change these options. Compiling Lisp source code from file ./5940177716537504213-25px003.lsp Issuing )library command for 5940177716537504213-25px003 Reading /var/aw/var/LatexWiki/5940177716537504213-25px003.asy zipWith is now explicitly exposed in frame initial zipWith will be automatically loaded when needed from /var/aw/var/LatexWiki/5940177716537504213-25px003 apply is now explicitly exposed in frame initial apply will be automatically loaded when needed from /var/aw/var/LatexWiki/5940177716537504213-25px003 tail is now explicitly exposed in frame initial tail will be automatically loaded when needed from /var/aw/var/LatexWiki/5940177716537504213-25px003 fib is now explicitly exposed in frame initial fib will be automatically loaded when needed from /var/aw/var/LatexWiki/5940177716537504213-25px003 main is now explicitly exposed in frame initial main will be automatically loaded when needed from /var/aw/var/LatexWiki/5940177716537504213-25px003 |