pmath
pmath is a general-purpose mathematics crate for Rust.
It provides a wide range of mathematical functions and algorithms which heavily use Rust's idiomatic features such as traits, generics, and iterators.
This crate started as a mathematical backend for the peuler crate, but has since evolved into a standalone crate.
Example
use ;
use is_prime;
assert_eq!;
assert_eq!;
assert!;
No-std support
There is currently no support for no-std environments.
WebAssembly support
wasm32-unknown-unknown target is supported, but requires --cfg getrandom_backend="wasm_js" flag to be passed to the compiler.
See getrandom crate's documentation for more details.
Other WASM targets should work out of the box.
License
This project is licensed under the MIT License.
Contributing
Contributions are welcome!
Please open an issue or a pull request in the GitHub repository.