Crates.io | multifactorials |
lib.rs | multifactorials |
version | 0.3.0 |
source | src |
created_at | 2022-03-12 16:09:17.244301 |
updated_at | 2022-06-11 18:49:05.563393 |
description | A Rust crate who allows you to use multi factorials |
homepage | |
repository | |
max_upload_size | |
id | 548809 |
size | 4,535 |
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);
}