Hello,
I am discovering Maxima but experienced some problems to use it.
One of them : what is wrong in :
(%i1) f(x):=a*x+b;
(%o1) f(x) := a x + b
(%i2) linsolve([f(0)=1,f(1)=3],[a,b]);
(%o2) [a = 2, b = 1]
(%i3) f_n(x):=subst(%,f(x));
(%o3) f_n(x) := SUBST(%, f(x))
(%i4) f_n(2);
Improper argument to SUBST:
f_n(x) := SUBST(%, f(x))
#0: f_n(x=2)
-- an error. Quitting. To debug this try DEBUGMODE(TRUE);
Substituting :
(%i3) f_n(x):=subst(%o2,f(x));
works correctly.
--
Cordialement
Dominique MICOLLET Email : Dominique.Micollet at u-bourgogne.fr
Universite de Bourgogne
9, Avenue Alain SAVARY BP 47870 Tel : +33/(0)3-80-39-59-27
21078 DIJON CEDEX FRANCE Tfx : +33/(0)3-80-39-68-69