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

GitHub: GitHub - jorgeandrecastro/embedded-maths: embedded-maths is a collection of mathematical functions for embedded Rust and no_std environments. It provides an extensible scalar API and dependency-backed implementations for trigonometry, square roots, exponentials, statistics, vectors, matrices, and quaternions. · GitHub

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

Read full topic