An Application of the Melnikov Method to a Piecewise Oscillator Apr 22, 2023