(32SII) Solving a Single Congruence Equation for the HP 32Sii
|
03-10-2019, 07:41 PM
(This post was last modified: 08-23-2019 01:18 AM by Albert Chan.)
Post: #5
|
|||
|
|||
RE: (32SII) Solving a Single Congruence Equation for the HP 32Sii
With post #4 LC(), for solving A x ≡ B (mod N), we can do Simultaneuous Linear Congruence
Code: def SLC(eqn1, eqn2): Example: x≡3 (mod 7) AND x≡105 (mod 143) AND x≡27 (mod 312) AND x≡248 (mod 715) >>> reduce(SLC, [(3,7), (105, 143), (27, 312), (248, 715)]) (35283, 120120) >>> # Second congruence is covered by the fourth, and safe to eliminate ... >>> reduce(SLC, [(3,7), (27, 312), (248, 715)]) (35283, 120120) |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(32SII) Solving a Single Congruence Equation for the HP 32Sii - Eddie W. Shore - 01-16-2014, 03:16 AM
RE: Solving a Single Congruence Equation for the HP 32Sii - Thomas Klemm - 01-16-2014, 05:58 AM
RE: Solving a Single Congruence Equation for the HP 32Sii - Thomas Klemm - 01-17-2014, 09:04 PM
RE: (32SII) Solving a Single Congruence Equation for the HP 32Sii - Albert Chan - 03-06-2019, 04:50 AM
RE: (32SII) Solving a Single Congruence Equation for the HP 32Sii - Albert Chan - 03-10-2019 07:41 PM
|
User(s) browsing this thread: 1 Guest(s)