Zero version of mathematica evaluator for MAXIMA



Am 12 Mar 2006 um 18:42 hat Siver Andrey geschrieben:

> (%i3) :lisp(mtest) <!-- this executes code from the attached file test.txtcontaning 
> "a=0;b=a+1;f[x_]=a+x;a=1;c:=a+1;g[x_,y_]:=x+y+a;a=2"-->
> NIL

> (%i34) ?a:t;
> (%o34)  t
> (%i35) t:1;
> (%o35)  1
> (%i36) ev(?g(x,y));
> (%o36)  y + x + t
> Mathematica result: y+x+1 
> How it is possible to force MAXIMA to use final result of the assigments?

(%i1) g(x,y):=x+y+a;
(%o1) 			     g(x, y) := x + y + a
(%i2) a:t;
(%o2) 				       t
(%i3) t:1;
(%o3) 				       1
(%i4) ''(g(x,y));  <-- two single quotes
(%o4) 				   y + x + 1

Hello Siver,
is this, what you want?
HTH
Volker