Embedding maxima



On Fri, 25 Feb 2005 13:54:51 -0800 (PST), C Y  wrote:
> --- Raymond Toy  wrote:
> 
> > Well, at least it's a start.  If you want to convert the string
> > "3*x^2" to the corresponding maxima expression, you'll have more work
> > to do to hook into the command parser.  I haven't tried that before.
> >
> > Ray
> 
> IIRC I asked about this a while back, and some commands were created
> specifically for this type of operation?  I can't remember what they
> were called but if I get some time this weekend I'll try to scare them
> up.

That would be very nice.

Thanks to everybody's help, I managed to get some example code
working, letting me do stuff like this:

* (defparameter v (make-vector 3 4)
V
* v
#
* (setf (angle v) (degrees->radians 60))
((MTIMES RATSIMP) ((RAT) 1 2)
 ((MTIMES RATSIMP) 5 ((MEXPT SIMP) 3 ((RAT SIMP) 1 2))))
* v
#

I'm beaming with joy!

-Peter