pub fn perimeter_num_vec(x: f64, y: &[f64]) -> Vec<f64>
Expand description
§perimeter_num_vec(x, y)
Geometry Function
The perimeter_num_vec
function calculates the perimeter of each element in a slice y
of floats, given a reference x
, and returns a new vector containing the perimeters.
§Examples
use mathlab::math::{perimeter_num_vec, INF_F64 as inf};
assert_eq!(perimeter_num_vec(1.0, &[0.0, 1.0, 2.0, inf]), [2.0, 4.0, 6.0, inf]);
End Fun Doc