Legendre wavelet Galerkin method for solving ordinary differential equations with non-analytic solution | Synapse