Quote:
Originally Posted by CaptainBlack I have run method 2 through Maxima and the results are shown in the attachment (I ought to condense this down to a function definition since this is at least the second time I have done this).
(this is just using Gram-Schmidt to find the first few orthogonormal basis polynomials then using the first couple of terms of the generalised Fourier series corresponding to the orthonormal basis - note I am using the inner product of real functions not that for complex)
CB |
IIRC there is also a trick that will allow the minimisation of the square relative error by defining the weight to be one over the square of the function you are trying to fit.
CB