Shared Rust kernels

ported/phi_fn

All modules · quoted at commit 9e1884369a67 of DnaCalc/DnaCalc. Comments are the source's own.

phi_kernel · 8 lines · calc-func/src/ported/phi_fn.rs on GitHub
pub fn phi_kernel(x: f64) -> Result<f64, WorksheetErrorCode> {
    // W111 square-overflow observations distinguish worksheet density admission
    // from the unguarded internal primitive used in other numerical graphs.
    if !crate::ported::excel_numeric::excel_x87_mul(x, x).is_finite() {
        return Err(WorksheetErrorCode::Num);
    }
    Ok(phi_kernel_impl(x))
}

Used by 5 functions.