Hello everybody !!!!

I have had to write a function for something which may be called
"multivariate polynomial fitting".

Let's say you have a polynomial in several variables (ex 2) of degree
(ex 2). It has the following shape : a x^2 + b xy + c y^2 + d

The trouble is that you can evaluate it but you do not know its
coefficients... Algebra tells you that if you can evaluate it at
variable*(degree+1) different points, then you can guess the
coefficients, because they are unique.

I have written this function ( which is just the inversion of a vector
) for arbitrary number of variables/dimensions. Scipy seems only to
provide a polyfit function ( in just one variable ), so it is not a
good answer for what I have to do.

* Do you think such a function would be useful in Sage ? In which
case, where should I write it ?
* Do you think it would be more useful directly in Scipy ?
* Do you think it is useful at all ?

Thank youuuuuuu !! :-)

Nathann
-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to