0 Replies Latest reply on Feb 20, 2012 1:54 PM by moose!

    I found something interesting but it's not all that useful

    moose!

      So I'm pretty sure we all know how to square something right? You take something and you multiply it by itself. What if I found a different way to do it? I use addition, but I don't add it to itself x amount of times (mirroring multiplication). I have a different way. It involves two variables. I think this method also removes decimals from square roots. Instead of an irrational number you'll end up with two bigger whole numbers. I'm willing to bet there is some kind of near instant bitwise operation that can be used if the processor was tinkered with.


      I'm trying to decide if it's worth the leg work. I'll have to learn assembly language to measure this. I think I have to square something a million times and time it in order to see if this is useful. In order to do that, I think I have to use registers that regular programming languages can't access. If my operation is faster than your operation, is that worth money?