Analyze the Harmonic Oscillator with SymPy