Skip to main content

oscillator_total_energy

Function oscillator_total_energy 

pub fn oscillator_total_energy(
    spring_constant: f64,
    amplitude: f64,
) -> Option<f64>
Expand description

Computes oscillator total energy using E = 0.5 * k * A².