[Edu-sig] multiplying permutations

kirby urner kirby.urner at gmail.com
Fri Mar 11 08:50:09 CET 2011


Here's some verbiage on math-teach giving some context for the
just-posted source code:

http://mathforum.org/kb/message.jspa?messageID=7403815&tstart=0

There's a perennial thread on some math teaching groups as to whether
multiplication should be conveyed as "repeated addition", which often
seems the sensible approach, but always?

In going to other meanings of multiplication, with a family
resemblance to rational number multiplication (e.g. existence of
inverse such that p * ~p = 1), we venture more into abstract algebra
territory.

This is where Python shines, as one of those language making operator
overloading a snap.  Write a class, define __mul__ to suit.

Kirby

On Thu, Mar 10, 2011 at 3:43 PM, Kirby Urner <kurner at oreillyschool.com> wrote:
> """
> Source code for math-teach post
> by Kirby Urner / OST
> (c) GNU Public License, 2011
> """


More information about the Edu-sig mailing list