pub fn erfcinv_simd<F>(x: &ArrayView1<'_, F>) -> Array1<F>where
F: Float + SimdUnifiedOps,Expand description
Element-wise inverse complementary error function erfcinv(y) = x such that erfc(x) = y
More numerically stable than erfinv(1 - y) for y close to 0. Uses SIMD acceleration when available for optimal performance.
§Domain and Range
- Domain: (0, 2)
- Range: (-∞, ∞)
- erfcinv(0) = ∞, erfcinv(2) = -∞
§Properties
- erfcinv(1) = 0
- erfcinv(y) = erfinv(1 - y)
- erfc(erfcinv(y)) = y
§Examples
use scirs2_core::ndarray_ext::elementwise::erfcinv_simd;
use scirs2_core::ndarray::array;
let y = array![1.0f64, 0.5, 1.5];
let result = erfcinv_simd(&y.view());
assert!((result[0] - 0.0).abs() < 1e-10); // erfcinv(1) = 0