#statistical-analysis #vector #quaternions #arithmetic-operations #statistics #floating-point #vector-math

no-std micromath

Embedded-friendly math library featuring fast floating point approximations (with small code size) for common arithmetic operations, trigonometry, 2D/3D vector types, statistical analysis, and quaternions. Optimizes for performance and small code size at the cost of precision

18 releases (6 stable)

2.1.0 Oct 31, 2023
2.0.0 May 15, 2021
2.0.0-pre Apr 25, 2021
1.1.1 Mar 27, 2021
0.3.1 May 11, 2019

#40 in Math

Download history 6374/week @ 2023-12-16 5138/week @ 2023-12-23 9276/week @ 2023-12-30 9621/week @ 2024-01-06 7727/week @ 2024-01-13 8223/week @ 2024-01-20 7991/week @ 2024-01-27 7046/week @ 2024-02-03 8018/week @ 2024-02-10 8553/week @ 2024-02-17 9389/week @ 2024-02-24 8702/week @ 2024-03-02 12042/week @ 2024-03-09 13474/week @ 2024-03-16 10352/week @ 2024-03-23 12261/week @ 2024-03-30

49,628 downloads per month
Used in 211 crates (44 directly)

Apache-2.0 OR MIT

220KB
6K SLoC

Crate Docs Build Status Safety Dance MSRV Apache 2.0/MIT Licensed

Embedded-friendly (i.e. no_std) Rust math library featuring fast, safe floating point approximations for common arithmetic operations, trigonometry, 2D/3D vector types, statistical analysis, and quaternions.

Optimizes for performance and small code size at the cost of precision.

Documentation

Minimum Supported Rust Version

Requires Rust 1.47 or newer.

SemVer Policy

We reserve the right to change the following in future releases with a minor version bump only:

  • MSRV
  • num-traits version (optional dependency)

Features

Code of Conduct

We abide by the Contributor Covenant and ask that you do as well.

For more information, please see CODE_OF_CONDUCT.md.

License

Copyright © 2019-2021 Tony Arcieri

Dual licensed under your choice of either of:

Incorporates portions of some tests from the libm crate. Copyright © 2018 Jorge Aparicio and also dual licensed under the Apache 2.0 and MIT licenses.

Dependencies