easy equation curve near points



> I mean something like this:
> http://www.wolframalpha.com/input/?i=Fit[{{0.7%2C+0.5}%2C+{1.21%2C+1.33}%2C+{-0.42%2C+0.17}%2C+{-0.93%2C+0.87}%2C
> +{-0.79%2C+0.5}%2C+{-0.55%2C+0.36}%2C+{-0.27%2C+0.05}%2C+{0.27%2C+0.11}%2C+{0.5%2C+0.25}}%2C+{1%2C+x%2C+x^2}%2C+x]

> is there a similar function in maxima?

Sure! Try this:

p:matrix([0.7, 0.5],[1.21, 1.33],  
[-0.42,0.17],[-0.93,0.87], [-0.79, 0.5], [-0.55, 0.36], [-0.27, 0.05],
[0.27, 0.11], [0.5, 0.25])$

load(lsquares)$

lsquares_estimates(p,[x,y],y=a+b*x+c*x^2,[a,b,c]),numer;
[[a=.02758224435479559,b=5.176003724945678*10^-4,c=.9013628964419875]]

You get the same answer...
___________________________________
Jose A. Vallejo
Facultad de Ciencias UASLP &
Division de Ciencias Exactas Unison
http://galia.fc.uaslp.mx/~jvallejo
__________________________________