https://github.com/jewlexx/fibonacci-like
A small crate to help you interact with second order sequences, such as the Fibonacci sequence, with no_std support.
https://github.com/jewlexx/fibonacci-like
fibonacci-sequence second-order
Last synced: 3 months ago
JSON representation
A small crate to help you interact with second order sequences, such as the Fibonacci sequence, with no_std support.
- Host: GitHub
- URL: https://github.com/jewlexx/fibonacci-like
- Owner: jewlexx
- License: apache-2.0
- Created: 2022-08-18T23:07:59.000Z (almost 3 years ago)
- Default Branch: trunk
- Last Pushed: 2023-12-15T05:24:42.000Z (over 1 year ago)
- Last Synced: 2024-05-02T02:29:36.120Z (about 1 year ago)
- Topics: fibonacci-sequence, second-order
- Language: Rust
- Homepage:
- Size: 67.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# Fibonacci Like
[](https://docs.rs/fibonacci-like)
[](/Cargo.toml)
[](https://crates.io/crates/fibonacci-like)
[](https://crates.io/crates/fibonacci-like)
[](/src/lib.rs)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
```toml
[dependencies]
fibonacci-like = "0.1"
```## Usage
```rust
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:
[](https://opensource.org/licenses/MIT)
[](https://opensource.org/licenses/APACHE)**Made with 💗 by [Juliette Cordor](https://github.com/jewlexx)**