Thread: foo^(n/m)
View Single Post
  #3  
Old 10-16-2005, 11:32 PM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Quote:
Originally Posted by Velox Cruentus
Umm... You are trying to square a negative number, sir... The value is undefined.


How about NOT going into magic numbers... Especially since 'i' is ALREADY taken. i is the most used variable, and I will not give it up for imaginary numbers! Now... Just don't square root negative numbers. Do this! abs(-2)^(1/2) @ "i" instead, alright?

EDIT:

2 ^ (1/3) == ~1.26
~1.26 != ~1.41 ( or 2^(1/2) )
Did you, uh, actually read the post?
Reply With Quote