Daniel Finnie wrote:
> Why does everything have to be Math.<func>(num)?  Isn't num.func more 
> object oriented-ish?

Having the math functions in a module means there could be an alternate 
module with a different implementation.

Why another implementation of Math::sin?

Well, I notice that some folks on this thread have used the example of 
sin(90), probably expecting the argument units to be degrees rather than 
radians. There could be an alternate library using degrees:

MathDeg::sin(90) # ==> 1.0

Another example might be a version of Math that used something other 
than libm, perhaps something with different precision, or optimized 
differently.

The point is that the various math functions (or a particular 
implementation of them) belong together more than they belong to numbers.

-- 
        vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407