Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Topic: Teaching multiplication of fractions by repeated addition
Replies: 13   Last Post: Nov 11, 2005 11:41 PM

 Messages: [ Previous | Next ]
 Kirby Urner Posts: 4,713 Registered: 12/6/04
Re: Teaching multiplication of fractions by repeated addition
Posted: Nov 8, 2005 4:08 PM

from __future__ import *

"""
Getting back to real math, we're talking extensible type system, with primitives, all objects if you like, but with methods, not just state.

And so therefore:

2

where a dir(1) -- dump of the number one instance -- gets you a list of integer type methods, inheriting from 'object' above that. There's a canonical class type in Python, but you're welcome to design your own metaclasses.

To just define a new ordinary class, do something like:

class Dog(object):
def __init__(self, a,b):
self.a = a
self.b = b
def __repr__(self):
return 'I'm Dyadic Dog (%s, %s)' % (self.a, self.b)

And so on.

[End of 7th grade lesson plan.]

"""

Then, as high school progresses, we'll describe types in terms of their methods and properties. For example integers have this property 'sign' whereas rationals have these properties 'numerator'/'denominator' and/or 'dividend'/'divisor' (these being in turn of integer type). However, as both are numbers, they inherit an interface consisting of + - * and / (add, subtract, multiply, divide). That's a minimalist 'number API' if you will. Not that all math types obey it. Vectors, for example, haven't multiplied directly, only added and subtracted, after scaling (e.g. float * vector). Different algebra. Same general idea (groups, rings, fields and like that).

Then Hamilton came along with quaternions, which behaved a lot like vectors, yet multiplied directly, in ways relevant to 3D game programmers. Quaternions. To be watered down (thankfully) by Heaviside and Gibbs. Gibbs had an especially good feel for how to teach vectors. We thank him for that. The others too. Vectors useful. Quaternions useful. Cave paintings useful.

Kirby

Date Subject Author
10/5/05 Domenico Rosa
10/5/05 Joshua Zucker
10/6/05 Domenico Rosa
10/6/05 Pam
11/8/05 Hal Schneider
11/8/05 Joshua Zucker
11/9/05 Pam
11/9/05 Hal Schneider
11/9/05 Joshua Zucker
11/11/05 Paul A. Tanner III
11/8/05 Emily Thomasson
11/8/05 Hal Schneider
11/8/05 Domenico Rosa
11/8/05 Kirby Urner