3 releases (breaking)
0.3.0 | 2022年6月11日 |
---|---|
0.2.0 | 2022年3月12日 |
0.1.0 | 2022年3月12日 |
#850 in Math
3KB
Multifactorials
is a powerful mathematics tool who allows you to calculate factorials easily.
安装
To use multifactorials
, you need to add it to your dependencies like in the example bellow
[package]
name = "my-beautiful-crate"
version = "0.1.0"
[dependencies]
multifactorials = "0.3.0"
示例
use multifactorials::Multifactorials;
fn main() {
let simple_factorial = Multifactorials::simple(7.0);
let complex_factorial = Multifactorials::complex(7.0, 2);
println!("The result of 7! is {}", simple_factorial);
println!("The result of 7!! is {}", complex_factorial);
}