Subject: Assistance requested with basic Maxima commands.
From: C Y
Date: Sun, 17 Jul 2005 15:30:28 -0700 (PDT)
Sorry to come late to the party (been on vacation) but I think this
would be a VERY good thing to be able to do in Maxima as a standard
command. I believe I have encountered cases (naturally which I can't
remember right now) where what is displayed on screen has some hidden
underlying structure which gets in the way of doing things with it, and
it must be retyped by hand.
Cheers,
CY
--- Raymond Toy wrote:
> >>>>> "C" == C Frangos writes:
>
> C> (1) Is it possible to synthesize a command to convert a string
> into a
> C> valid expression, and then evaluate this using ev() ? The
> command
> C> string(expr) does the opposite, converts an expression to
> a string.
>
> Yes. Something like
>
> (defun $foo (string)
> (with-input-from-string (s string)
> (dbm-read s)))
>
> will produce the same form as if you had typed the string input the
> prompt.
>
> For this to all work, it needs to be made better, of course. I
> didn't
> actually try $foo from maxima, but just ran it in lisp. So
>
> (meval (third ($foo "sin(%pi/4): ")))
>
> produces
>
> ((MTIMES SIMP) ((RAT SIMP) 1 2) ((MEXPT SIMP) 2 ((RAT SIMP) 1 2)))
>
> which is maxima's internal representation of sqrt(2)/2.
>
> Ray
>
> _______________________________________________
> Maxima mailing list
> Maxima@www.math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>
__________________________________
Yahoo! Mail
Stay connected, organized, and protected. Take the tour:
http://tour.mail.yahoo.com/mailtour.html