|
From: Stavros M. (Σ. Μ. <mac...@al...> - 2015-01-02 00:16:58
|
>
>
> .
> ..
> I have tried these codes:
>
> load (lsquares) $
> p:matrix([x, y set Data 1], [x, y set Data 2], [x, y set Data 3]...)
> lsquares_estimates ( p, [x,y], a*x^(n-1)+b*x^(n-2) ..., [a, b,c,...]);
>
> But it throws syntax error. Kindly give the exact code for the polynomial
> fit for numeric data.
>
Please give a *minimal, reproducible* example of the problem you're
having. That is, no "y set Data 1" and "...". That should help us resolve
your issue.
Reproducible means that we can cut and paste it in to our copies of Maxima
and get it to run (or give the same error message).
Minimal means that it should be a small case (say 4 data points), not a
large one.
Thanks, and welcome to Maxima,
-s
|