bubblemath

Crates.iobubblemath
lib.rsbubblemath
version0.1.2
sourcesrc
created_at2021-04-13 01:09:59.305996
updated_at2021-04-20 08:14:32.143835
descriptionA collection of mathematical algorithms in pure Rust.
homepagehttps://github.com/Bubbler-4/math-rs
repositoryhttps://github.com/Bubbler-4/math-rs
max_upload_size
id382642
size23,970
(Bubbler-4)

documentation

README

Bubblemath

A collection of mathematical algorithms in pure Rust

Contents

  • Number theory
    • Primality test (Baillie-PSW)
    • Integer factorization (Pollard's rho)
    • Next prime, n-th prime
    • Jacobi symbol
    • Divisor sigma function
    • Iterator over Pythagorean triplets
    • Modular inverse
    • Chinese remainder theorem for two moduli
    • Algorithm to find minimal x satisfying left <= a*x <= right (mod m)
  • Linear recurrence
    • n-th term calculation (faster than matrix exponentiation by squaring)
    • Berlekamp-Massey algorithm (identifying linear recurrence modulo prime)
Commit count: 10

cargo fmt