Crate fibonacci_like

Source
Expand description

§Fibonacci Like

docs.rs Libraries.io dependency status for latest release Crates.io Crates.io no_std support

A small crate to help you interact with second order sequences, such as the Fibonacci sequence, with no_std support.

§Features

  • Find the position of a given number
  • Find the number at a given position
  • Custom second order sequences

§Installation

[dependencies]
fibonacci_like = "0.1"

§Usage

let nth = 69;
let number = fibonacci_like::Sequence::fibonacci().calculate(nth);

println!("The \"{nth}\" number of the fibonacci sequence is:\n{number}");

§License

One of the following, at your choice:

License: MIT License: APACHE

Made with 💗 by Juliette Cordor

Structs§

  • A sequence, represented by the two starting values, which are later used to compute further values

Enums§

  • An error for when the given input could not be found in the sequence

Traits§

Type Aliases§