pub fn slice_add(a: &[f64], b: &[f64]) -> Result<Vec<f64>, String>
Element-wise sum of two equal-length slices.