2 releases
new 0.1.1 | Jan 28, 2025 |
---|---|
0.1.0 | Jan 28, 2025 |
#390 in Math
40KB
387 lines
numberlab
A collection of numerical algorithms
Installation
To use the numberlab
library in your Rust project, add the following to your Cargo.toml
:
[dependencies]
numberlab = "0.1.1"
For examples of how to use this library, refer to the documentation at docs.rs.
For specific examples, refer to the examples
directory in the repository.
List of algorithms
- Sequences:
- Arithmetic Sequence
- Factorial Sequence (OEIS A000142)
- Fibonacci Sequence (OEIS A000045)
- Geometric Sequence
- Lucas Sequence (OEIS A000032)
- Recaman Sequence (OEIS A005132)
- Sylvester's Sequence (OEIS A000058)
- Tribonacci Sequence (OEIS A000073)
- Figurate Sequences:
- Square Numbers (OEIS A000290)
- Triangular Numbers (OEIS A000217)
- Pentagonal Numbers (OEIS A000326)
- Hexagonal Numbers (OEIS A000384)
- Lazy Caterer's Sequence (OEIS A000124)
- Primes:
- Sieve:
- Eratosthenes
- Sundaram
- Sieve:
Dependencies
~480KB
~10K SLoC