#math #statistics #vector #quaternions #trigonometry

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

17 releases (5 stable)

new 2.0.0 May 15, 2021
1.1.1 Mar 27, 2021
1.1.0 Sep 30, 2020
1.0.1 Jun 12, 2020
0.3.1 May 11, 2019

#6 in Embedded development

Download history 1058/week @ 2021-01-21 908/week @ 2021-01-28 1139/week @ 2021-02-04 1066/week @ 2021-02-11 824/week @ 2021-02-18 983/week @ 2021-02-25 734/week @ 2021-03-04 702/week @ 2021-03-11 1061/week @ 2021-03-18 1271/week @ 2021-03-25 1301/week @ 2021-04-01 1196/week @ 2021-04-08 1676/week @ 2021-04-15 1176/week @ 2021-04-22 696/week @ 2021-04-29 601/week @ 2021-05-06

4,353 downloads per month
Used in 37 crates (16 directly)

Apache-2.0 OR MIT

215KB
5.5K 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