#ring #algebra #algorithm

ring-algorithm

algorithms on ring (Abstruct Algebra)

21 releases

0.7.0 Mar 12, 2023
0.6.1 Nov 27, 2022
0.6.0 Apr 9, 2022
0.5.0 Feb 26, 2022
0.2.0 Mar 21, 2020

#421 in Math

Download history 140/week @ 2024-06-17 146/week @ 2024-06-24 132/week @ 2024-07-01 101/week @ 2024-07-08 163/week @ 2024-07-15 122/week @ 2024-07-22 273/week @ 2024-07-29 103/week @ 2024-08-05 185/week @ 2024-08-12 116/week @ 2024-08-19 188/week @ 2024-08-26 114/week @ 2024-09-02 112/week @ 2024-09-09 78/week @ 2024-09-16 236/week @ 2024-09-23 236/week @ 2024-09-30

680 downloads per month
Used in 8 crates (5 directly)

AGPL-3.0-or-later

39KB
1K SLoC

Ring Algorithm

Algorithms on ring.

  • GCD (Greatest Common Divisor)
  • coprime test
  • EEA (Extended Euclidean Algorithm)
  • solve $ax\equiv 1 \pmod{m}$ (inverse)
  • solve $ax\equiv b \pmod{m}$ (division)
  • CRT (Chinese Remainder Theorem)
  • power in modulo $a^p \pmod{m}$

Licence

AGPL-3.0-or-later

Dependencies

~0.1–0.8MB
~15K SLoC