At 5/7/08 10:26 PM, Disarray-yarrasiD wrote:
+
atomic. single clock cycle.
-
atomic. single clock cycle.
*
minimal. several clock cycles.
/
minimal. several clock cycles.
Math.sqrt()
moderate. employs several arithmetic functions iteratively.
then its splined linearly.
Math.pow()
invokes Math.exp() and a few multiplications.
Math.exp() is about the same cost as Math.sqrt()
Math.abs()
minimal. a few conditionals.
GENERATION 1-i: The first time you see this, copy it into your sig on any forum. Square it, and then add i to the generation.