pub fn log10_vec(x: &[f64]) -> Vec<f64>
Expand description
§log10_vec(x)
Logarithm Function
The log10_vec
function applies the base-10 logarithm to each element of x
,
returning a new vector containing the results of these computations.
§Examples
use mathlab::math::{log10, log10_vec, is_nan_f64, E, INF_F64 as inf,};
assert!(is_nan_f64(log10(-inf)));
assert_eq!(log10(E), 0.4342944819032518);
assert_eq!(log10_vec(&[0.0, 1.5, 10.0]), &[-inf, 0.17609125905568124, 1.0]);
End Fun Doc