Improved performance for HarmOsc by writing my own R_nl.