Lisp level interaction questions



[C Y , Mon, 9 May 2005 07:42:10 -0700 (PDT)]:
> lispstructure(a*b/(c*d));
....
> How do I interact with a1 and b1 defined in Maxima?  What are they
> named, for example?  How do I display their structure here?

,----
| (%i1) a*b/(c*d);
|
| 				      a b
| (%o1)                               ---
| 				      c d
| (%i2) ?print(%);
|
|
| ((MTIMES SIMP) |$a| |$b| ((MEXPT SIMP) |$c| -1) ((MEXPT SIMP) |$d| -1))
| 				      a b
| (%o2)                               ---
| 				      c d
| (%i3) a1: a*b/(c*d);
|
| 				      a b
| (%o3)                               ---
| 				      c d
| (%i6) to_lisp();
|
|
| ; In: LAMBDA (CONDITION ME-OR-MY-ENCAPSULATION)
|
| ;   #'(LAMBDA (CONDITION ME-OR-MY-ENCAPSULATION)
| ;       (BLOCK MAXIMA-LISP-DEBUGGER-REPL # # #))
| ; Note: Variable ME-OR-MY-ENCAPSULATION defined but never used.
| Type (to-maxima) to restart
|
| MAXIMA> $a1;
| ((MTIMES SIMP) |$a| |$b| ((MEXPT SIMP) |$c| -1) ((MEXPT SIMP) |$d| -1))
| MAXIMA> (run)
| Maxima restarted.
| (%i7)
`----

HTH,

Albert.