#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

#686 in Math

Download history 124/week @ 2024-08-21 175/week @ 2024-08-28 111/week @ 2024-09-04 109/week @ 2024-09-11 144/week @ 2024-09-18 205/week @ 2024-09-25 171/week @ 2024-10-02 155/week @ 2024-10-09 116/week @ 2024-10-16 129/week @ 2024-10-23 110/week @ 2024-10-30 58/week @ 2024-11-06 89/week @ 2024-11-13 121/week @ 2024-11-20 134/week @ 2024-11-27 100/week @ 2024-12-04

454 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