pub fn gradient_uniform(y: &[f64], h: f64) -> Vec<f64>
Numerical gradient with uniform spacing (forward/central/backward differences).