[REBOL] Re: RF - Zine #6
From: anton:lexicon at: 8-May-2002 12:42
Yes it's good. I feel bad I haven't contributed anything.
I noticed in Cyphre's draw tutorial this line of code:
r: square-root ((power p/x 2) + (power p/y 2))
In tests I conducted recently I discovered that
using power is only faster for powers >= 5.
Better, then, to write simply:
r: square-root ((p/x * p/x) + (p/y * p/y))
I remember this was discussed a long time ago, by more
ancient rebols.
This might also save a few cycles. Have to test it
though:
p2: p * p
r: square-root (p2/x + p2/y)
Anton.