https://github.com/loyispa/rust-strictmath
Rust cross-platform math lib
https://github.com/loyispa/rust-strictmath
fdlibm numeric predictable rust strict-math
Last synced: about 2 months ago
JSON representation
Rust cross-platform math lib
- Host: GitHub
- URL: https://github.com/loyispa/rust-strictmath
- Owner: loyispa
- License: apache-2.0
- Created: 2023-05-04T11:07:44.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-02-18T09:06:36.000Z (over 2 years ago)
- Last Synced: 2025-12-13T23:58:42.915Z (5 months ago)
- Topics: fdlibm, numeric, predictable, rust, strict-math
- Language: C
- Homepage:
- Size: 121 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rust-strictmath
If obtaining a completely predictable result is more important than running speed, then the crate should be used. This crate provides series of float functions to ensure they could produce the same results across different platforms. These algorithms are available from the well-known **fdlibm**.
# functions
- acos
- asin
- atan
- atan2
- cbrt
- cos
- cosh
- exp
- expm1
- hypot
- log
- log10
- log1p
- pow
- sin
- sinh
- sqrt
- tan
- tanh
# usage
Run the following Cargo command in your project directory:
```
cargo add rust-strictmath
```
Or add the following line to your Cargo.toml:
```
rust-strictmath = "0.1.2"
```