birgitte_fibonacci

Crates.iobirgitte_fibonacci
lib.rsbirgitte_fibonacci
version0.2.0
sourcesrc
created_at2023-01-06 10:17:15.278496
updated_at2023-01-06 10:46:02.499497
descriptionA library for calculating fibonacci
homepage
repository
max_upload_size
id752223
size4,786
Birgitte Haavardsholm (birhaa)

documentation

README

Birgitte fibonacco

birgitte_fibonacci has functions that calculate the fibonacci number of a given number.

Examples

fib

Caclculates fibonacci with custom memoization

Supports: u8, u16, u32, u64, u128, usize

assert_eq!(fib::<usize>(30), 832040);

fib_memo

Caclculates fibonacci with memoizate

Supports: usize

assert_eq!(fib_memo(30), 832040);

Panic

If the number that is created is to big for the datastructure

Commit count: 0

cargo fmt