>>>>> "Harry" == Harry Kanda writes:
Harry> Hi guys,
Harry> here's something that i found out a while ago.. but have forgotten
Harry> How do i get the structured object for the representation of an expression?
Harry> i.e. a: 3+b
Harry> toLisp()
Harry> [something here]
Harry> (MPLUS 3 b)
Harry> I believe that's how it looks..?
Harry> Also if anyone knows a way to do this whilst staying in maxima.. i'm
Harry> using xMaxima if that makes a difference
Is this what you want?
(%i2) a:3+b;
(%o2) b + 3
(%i3) :lisp $%o2
((MPLUS SIMP) 3 $B)
(%i3) :lisp $a
((MPLUS SIMP) 3 $B)
(%i3) to_lisp();
Type (to-maxima) to restart, ($quit) to quit Maxima.
MAXIMA> $a
((MPLUS SIMP) 3 $B)
MAXIMA>
Ray