pub fn oscillator_total_energy( spring_constant: f64, amplitude: f64, ) -> Option<f64>
Computes oscillator total energy using E = 0.5 * k * A².
E = 0.5 * k * A²