Crate number_utils
source ·Expand description
number-utils
A calculation crate.
Examples
use number_utils::NumberUtils;
let n: u32 = 6;
assert_eq!(n.factorial(), 720);
assert_eq!(n.permutation(3), 120);
assert_eq!(n.combination(3), 20);
assert_eq!(10_u32.factorial().digits(), 7);
Re-exports
pub use crate::bigint::*;
Modules
Traits
Functions
- Implementation of the Pascal’s triangle.