|
|
| laziness, impatience, and hubris | |
| PerlMonks |
Re^4: Seeing if two numbers have the same sign ($x / abs $x)by WoodyWeaver (Monk) |
| on Jan 12, 2008 at 13:24 UTC ( [id://662057]=note: print w/replies, xml ) | Need Help?? |
|
arg, eyes are getting old. You are absolutely right. I was thinking of the "trick" people had described about taking the product and checking if positive; you are indeed normalizing the vectors and checking for equality.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||