>>> from approx1D import * >>> x = sp.Symbol('x') >>> f = 10*(x-1)**2-1 >>> u, c = least_squares(f=f, psi=[1, x], Omega=[1, 2]) >>> comparison_plot(f, u, Omega=[1, 2])