Hi r/rust,
I just released embedded-maths v0.3.0 (Rust 2024 edition), focused on a modular architecture and richer integration across no_std / f32 math building blocks for embedded Rust.
What's in v0.3.0
Unified no_std entry point: Exposes scalar functions (abs, sqrt, invsqrt, sin/cos/tan/atan2, exp/ln/log2/log10/powf/powi, rounding, Euclidean ops) alongside Vec3, Matrix2x2, Quaternion, and stats (mean, variance, std_dev).
Modular, dependency-backed design: Delegates specialized routines to focused sub-crates (embedded-f32-sqrt, embedded-invsqrt-f32, embedded-exp-f32, embedded-trig-f32, embedded-stats-f32, embedded-vector, embedded-matrix, embedded-quaternion-f32) while keeping a cohesive public API.
Richer integration & explicit error handling: Combines scalar math, linear algebra, and statistics in one place (~2.5K SLoC) with explicit error returns on invalid domain inputs (such as negative sqrt or non-positive invsqrt).
Install & Links
Ini, TOML
[dependencies]
embedded-maths = "0.3"
Crates.io: crates.io: Rust Package Registry
Docs.rs: embedded_maths - Rust
Note that the crate is licensed under GPL-2.0-or-later. I'm iterating quickly on modular integration and ergonomics feedback on target hardware needs, feature flags, or API ergonomics is very welcome.
1 post - 1 participant
