top of page

Richard Gayle's Web Home

Python

    a few samples of Python code I've written over the last three or so years.

Numerical Solver

    finds all zeros of user defined function on given interval to within specified 

       tolerance

Fermat Pseudo-Primes

   generates finite list of Fermat pseudo-primes

RSA Algorithm

   implements Revez-Shamir-Adelman encryption for simple text keypad encoding

Binary Representation

   converts base-ten integer to its binary representation

Table Generator

   generates the table of 2^n value assignments for a collection of n logicals

Power Set

   generates the power set for a given set represented as a string

 

 

bottom of page