Re: more RANT

new topic     » goto parent     » topic index » view thread      » older message » newer message

------=_NextPart_000_0014_01BE8507.E2C6D7A0
        charset="iso-8859-1"

I made a little program to test the three proposed tests for even
divisibility.  (It is included with this email)

The results were:

1st fastest:
remainder(numerator,denominator) = 0
2nd:
integer(numerator/denominator)
and 3rd:  (unfortunately the one I proposed)   :)
numerator/denominator = floor(numerator/denominator)

The results on the program will show you time for numbers 1-100, 1-1000,
1-10000, etc. up to 1-1000000

I just hope that there isn't any error in my program that would cause the
results to be false.



------=_NextPart_000_0014_01BE8507.E2C6D7A0
        name="EvenDivi.ex"

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu