pub fn write_to_output_path(result: &[f64])