Numerical Linear Approximation in C