I have long symbolic function in Maxima, let say
fn(x,y):=<<some long equation using x and y>>
I would like to calculate polynomial approximation of this function, let say
fn_poly(x,y)
within known range of x
and y
and with maximum error e
I know, that there is a funcionality in Maxima, e.g. plsquares
, but it needs a matrix on input and I have only function fn(x,y)
. I don't know how to generate this matrix from my function. genmatrix
creates matrix not usable by plsquares
.
Is this possible in Maxima?
Make list of lists and transform it to matrix.