rust-strictmath

Crates.iorust-strictmath
lib.rsrust-strictmath
version0.1.2
sourcesrc
created_at2023-05-04 14:44:36.242163
updated_at2023-11-30 10:16:34.166423
descriptionRust portable strict math implemention.
homepagehttps://github.com/loyispa/rust-strictmath
repositoryhttps://github.com/loyispa/rust-strictmath
max_upload_size
id856793
size278,049
tiegen (loyispa)

documentation

README

rust-strictmath

This crate is inspired by java StrictMath. If obtaining a completely predictable result is more important than running speed, then the crate should be used.This crate provide series of float functions to ensure they could produce the same results across different platforms. These algorithms are available from the well-known network library, 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"
Commit count: 22

cargo fmt