RPN_Mod_Calculator is a project mainly written in ..., it's free.
A RPN Modular Arithmatic Javascript Calculator
--- The Modular Artithmatic Calcultor ---
Overview
base functionality
Unary operators
binary operators
Other tests
Overview
This calculator is writen using the JavaScript language. It has been designed with modular arithmatic in mind, but does support some standard integer arithmatic as well. It operates in a Reverse Polish Notation fassion.
base functionality
Unary operators
+- (sign change) mod ^-1 (multiplicative inverse) ^2 ^3 sqrt (not yet implimented) c-rt (cube root) (not yet implimented)
engadge modulus affects: +-, ^2, ^3, (sqrt, c-rt)
binary operators
engadge modulus affects: +, -, *, ^n, (n-rt)
Other opperations
gcd - finds the gcd of the top 2 stack values. Fermat test - uses top stack value as the base in the fermat test using the working modulus. Miller-Rabin test - uses top stack value as the base in the Miller-Rabin test using the working modulus.
underlying algorithms