Post Reply 
Solving a Single Congruence Equation
07-24-2015, 12:23 PM (This post was last modified: 11-14-2015 09:19 AM by Ángel Martin.)
Post: #3
RE: Solving a Single Congruence Equation
(04-18-2014 05:24 PM)Thomas Klemm Wrote:  This program for the HP-42S solves for x in the equation:

A * x = B mod N

Example:
5 * x = 3 mod 17

Solution:
[font=Courier]5 ENTER 3 ENTER 17
XEQ "CONG"
4

Great example Thomas, thanks for sharing it.
I have used it to test the RCL Math functions from the Total_Rekall module, simply changing a few lines make it also applicable to the 41 platform now!

Cheers,
ÁM

"To live or die by your own sword one must first learn to wield it aptly."
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Solving a Single Congruence Equation - Ángel Martin - 07-24-2015 12:23 PM



User(s) browsing this thread: 1 Guest(s)