Wavelet-based numerical methods for some boundary value problems