Re: LZ: fractions


[Prev][Next][Index][Thread]

Re: LZ: fractions



> -> To divide by 3, retain the original number, divide by 2, then
> -> subtract the original number.
> ->
> -> To divide by 5 do the same thing except divide by 4.
> 
> No, that only works for Mult.
> (6/2)-6 != 2
> 
yep.. Dividing is always more compilated (and slower)


as an interesting note, teh CRAY 2 doesn't have a divide instruction, it 
only has an 'inverse' instruction that calculates 1/x, ad tehn you 
can multply this with something to do a divide.. this works out 
faster in most cases than any divide routine...
Of course that doesn't help here, but I though you may find it 
interesting...


Rob Taylor MAIL - mailto:rtaylor@ticalc.org 
           WEB  - http://www.u-net.com/~rtaylor/    


References: