factorial

Crates.iofactorial
lib.rsfactorial
version0.4.0
sourcesrc
created_at2018-07-04 09:51:08.253591
updated_at2023-11-23 11:07:56.203753
descriptionConvenient methods to compute the factorial, optionally checked.
homepage
repositoryhttps://github.com/thomwiggers/factorial/
max_upload_size
id72850
size40,794
Thom Wiggers (thomwiggers)

documentation

README

Compute factorials

This crate provides some convenient and safe methods to compute the factorial with an efficient method. More precisely it uses the prime swing algorithm to compute the factorial. See this paper for more detail.

It can compute the factorial in O(n (log n loglog n)^2) operations of multiplication. The time complexity of this algorithm depends on the time complexity of the multiplication algorithm used.

Commit count: 61

cargo fmt