On Sep 6, 3:49 am, "Dr. David Kirkby" <david.kir...@onetel.net> wrote:
> Anyway, I think I have the code OK now, but I did not get very far with that > at > all. > > I used 'ecl' which is built as part of Sage, set up the environment to run run > sage, but did not run it. Instead I called ecl directly after sticking your > lisp > file in the same directory as the list executable. The ecl interpreter seems > to > work - I could add 1000 to 100 and get 1100, but I got nowhere trying to load > your package. <snip> I put a copy of ABCL (Armed Bear Common Lisp) into the directory which contains the copy of Mockmma that I have been playing with, placed the directory into a zip file named mockmma_with_abcl.zip, and then uploaded it to the MathPiper development releases server: http://www.mathpiper.org/development-releases ABCL is written in Java, so you will need a copy of Java installed if you want to try running Mockmma with it. After you unzip the archive, just change into the mockmma_with_abcl directory and enter the following commands to launch abcl, initialize the Mockmma parser, and have it parse some Mathematica expressions: mockmma_with_abcl$ java -jar abcl.jar Armed Bear Common Lisp 0.21.0 Java 1.6.0_20 Sun Microsystems Inc. Java HotSpot(TM) 64-Bit Server VM Low-level initialization completed in 0.57 seconds. Startup completed in 1.667 seconds. Type ":help" for a list of available commands. CL-USER(1): (load "mma") T CL-USER(2): (load "parser") T CL-USER(3): (in-package :mma) #<PACKAGE "MMA"> MMA(4): (p) 2+2 (PLUS 2 2) MMA(5): (p) Sin[3] (SIN 3) MMA(6): (p) -PolyLog[2,1-a*c-b*c*x]/e (TIMES (TIMES -1 (POLYLOG 2 (PLUS 1 (TIMES -1 (TIMES A C)) (TIMES -1 (TIMES B C X))))) (POWER E -1)) MMA(7): Hope this helps, Ted -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org