#factorial #who #calculate #multi

multifactorials

A Rust crate who allows you to use multi factorials

3 releases (breaking)

0.3.0 Jun 11, 2022
0.2.0 Mar 12, 2022
0.1.0 Mar 12, 2022

#821 in Math

Download history 26/week @ 2024-02-19 19/week @ 2024-02-26 1/week @ 2024-03-11 51/week @ 2024-04-01

52 downloads per month

MIT license

3KB

Multifactorials is a powerful mathematics tool who allows you to calculate factorials easily.

Installation

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"

Example

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);
}

No runtime deps