Assign to Math. class

i remember seeing an example where one can assign additional functions to the math class.
Dose anyone know how exactly to do that?

I tried:

class Math {

function get phi():Number {
return (1+Math.sqrt(5))/2;
}

}

in a math.as
flash outputs

The class ‘math’ needs to be defined in a file whose relative path is ‘math.as’.
class math {

you mean math as in the function within flash or a math.class AS file?

you can “extend” math in a class file I guess

rants on the evils of class files