This is a modular arithmetic calculator written long ago in JavaScript.
It never made it out of its test phase.
Currently, input is only accepted from the buttons.
Instructions
- First define the modulus by entering its value in the topmost window
(clicking the "Enter Modulus" button is no longer necessary).
- Enter an integer by clicking on numeric buttons.
- Most operations (including greatest common divisor, "g") are binary and are entered in "infix" form.
- Enter the second operand.
- Click on the "=" sign to perform the calculation.
- Example: With modulus m = 50, clicking the four buttons
6 * 9 =
will yield the answer 4 since 6*9=54 and 54 MOD 50 = 4
- The greatest common divisor of integers a and b is
obtained as follows:
- click in the digits of a,
- click on the gcd button.
- click in the digits of b,
- click on the = sign.
For example, the greatest common divisor of 192 = 2 ^{6} * 3
and 30 = 2 * 3 * 5 is 2 * 3=6. Note that this is independent
of the modulus m: the answer will be the same no matter what value
m has.
- New! You can now enter values directly from the keyboard into
the registers.
NOTE: While the main display field
seems to accept keyboard input, the software only reads keyboard
input in the modulus field (step 1) and registers (step 8).
Please report bugs to me via
e-mail.