Thread: foo^(n/m)
View Single Post
  #2  
Old 10-16-2005, 11:04 PM
Velox Cruentus Velox Cruentus is offline
Registered User
Velox Cruentus's Avatar
Join Date: Dec 2004
Location: Quebec, Canada
Posts: 465
Velox Cruentus is on a distinguished road
Send a message via ICQ to Velox Cruentus Send a message via AIM to 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) )
__________________
In a world of change... Who'll you believe?
Reply With Quote