# Random Math Question

by mrchauncey
Tags: math, random
Well, you do have to know how the error is to be measured. If it is least squares, the problem would be to find the ##c_i## so that$$\int_a^b \left( \sum_{i=1}^n c_i f_i - f\right)^2$$is minimized. Or if you want a uniform approximation it might be that$$\max_{x\in [a,b]}\left|\sum_{i=1}^n c_i f_i(x) - f(x)\right|$$is minimized.