MorphIQ Labs

MorphIQ Numerics / Numerical computing

Deterministic numerics for Rust.

Binary64 mathematics with explicit accuracy contracts, reproducible scalar and SIMD results, and no platform libm dependency.

Double-precision numerical functions
binary64
Matching results on supported paths
Scalar + SIMD
No platform libm dependency
no_std
Function contracts and derivations
ONE VALUE, REPRODUCIBLE BITSA rounding decision on the number linef₋ff₊Exact valueNearest representable binary64 valueScalarSIMD lanesMatching bits on supported paths
Illustrative rounding and scalar/vector reproducibility; guarantees have function-specific domains.

Capabilities

A focused responsibility. A clear interface.

01

Mathematics and probability

Elementary functions, normal and bivariate-normal probabilities, tail and log-space operations, and seeded random streams. Each API states its domain, special values and numerical guarantee.

02

Arithmetic and checked solvers

Double-word arithmetic, compensated reductions, finite outward intervals, and reusable checked tridiagonal solves. Admission rules and returned certificates are specific to each operation.

03

Reproducible execution

A no_std library with no heap allocation or platform libm calls. Optional ARM NEON and x86 SIMD backends preserve each API’s scalar result bits under the documented floating-point environment.

Accuracy

Choose a numerical contract.

Select bounds against the error budget of the composed computation, including cancellation, tails and inverses.

Strong APIs

Correct rounding where established; proved error bounds elsewhere. Each function documents its domain, special values and assurance limits. Correct rounding is not a library-wide promise.

Explicit approximations

The fast namespace offers separate bounded-error APIs for exp, exp_coarse, ln, erfcx, norm_cdf and log_norm_cdf, with matching slice APIs. Feature flags never weaken an existing numerical contract.

Get started

Pin a release. Choose your features.

Pre-release · Rust 1.89+ · MIT OR Apache-2.0

Before 0.1, releases are git tags only. The library is not yet on crates.io. Add this dependency to Cargo.toml:

Cargo.toml

[dependencies.morphiq-numerics]
git = "https://github.com/MorphIQ-Labs/morphiq-numerics"
tag = "v0.0.22"

Rust

use morphiq_numerics::{elementary, normal};

assert_eq!(elementary::exp(0.0), 1.0);
assert_eq!(normal::norm_cdf(0.0), 0.5);

Explore the family

Related technologies