Revision as of 20:14, 3 January 2011 by Sbiddand (Talk | contribs)

This is the Extended Euclid algorithm we talked about last Thursday. Kind of cool, plug it into your favorite programming language.


def eeuclid(a,b)

   if a % b = 0:
       return [0,1]
   else
       [c,d] = eeuclid(b, a % b)
       return [d, c - d*(a/b)]

Alumni Liaison

Questions/answers with a recent ECE grad

Ryne Rayburn