raptorstrike 181 Report post Posted November 10, 2004 ok well the topic kind of explains my questoin but why is this?? dose this have to do with my calculator or dose it have to do with pi itself its been bothering me and this seemed like the right forum to ask even though it isnt related to games (well it could be as almost anything can) but thought id as thanks[grin] 0 Share this post Link to post Share on other sites
Agony 3452 Report post Posted November 10, 2004 Taking the non-integer power of a negative number is usually basically the same as taking the square root of negative one. You get an imaginary (and thus non-real) number. The square root of -1 is the same as (-1)^{1/2}. I don't know the formalities behind it, but it appears that all rational numbers with an even denominator (when the fraction is fully reduced), and all irrational numbers produce this behavior. 0 Share this post Link to post Share on other sites
Fruny 1658 Report post Posted November 10, 2004 Agony - Hrm. No. This is nonsense.raptorstrike:e^{iθ} = cos θ + i.sin θ [by definition]e^{iπ} = -1(-x)^{y} = x.(e^{iπ})^{y} = x.e^{iyπ} = x.cos yπ + ix.sin iπ 0 Share this post Link to post Share on other sites
sphinx23 188 Report post Posted November 10, 2004 (-x)^(y)if y is rational, it can be written as:y = p/q, q>0=> (-x)^(p/q)with a^(1/b) = b-th sqrt of a:=> (-x)^(p/q) = q-th sqrt of (-x)^p(-x)^p is a negative number for all uneven p.=> for all uneven p there is no answer.That should be the formalities for rational numbers, i hope ;) 0 Share this post Link to post Share on other sites
Dmytry 1151 Report post Posted November 10, 2004 It comes from how powers is defined. As Agony said, (-1)^0.5 is imaginary number.How power is defined on complex numbers:Let we have complex number c that angle between +x axis and c is q and |c|=r(*)(Note that for positive numbers, q=0 and for negative, q=pi , and for imaginary, q=pi/2 ) and if we have complex number c^{k} with angle q' and absolute value r' ,r'=r^{k} (r is always positive)q'=(q+n*2*pi)*k where n is integer.Note that in general, c^{k} have infinitely many values. But in some cases, most of 'em is equal.For positive c with zero imaginary part, there's only one purely real c^{k}. For negative c, there may be real values and may not, depending to k... If k is irrational, there's infinitely many complex values of c^{k}.On computers, usually, only one specific value is choosen...*that is, c=r*e^{iq}Fruny: i think if op would know what's e^{iq} is all about, there would be no question...edit: looked up font table for theta, replaced alpha by theta for standartness, typos.edit2: damn,i see theta as exactly like 8. font_size++edit3:some HTML masochism.edit4: damn, WTF font size="+1" and bold is so big?[Edited by - Dmytry on November 10, 2004 3:24:44 PM] 0 Share this post Link to post Share on other sites
raptorstrike 181 Report post Posted November 10, 2004 so really my questoin had nothing to do with pi it has to do with no int powers being represnted as fraction like so:woa turn down your font ok i get it chill out geeze 0 Share this post Link to post Share on other sites
domstyledesign 100 Report post Posted November 10, 2004 for any integer k:(-1)^(2k) = 1(-1)^(2k+1) = -1and inversely : x^(-y) = x^(1/y)-1 = (-1)^(1/(2k+1))such as (-1)^(1/3) = third root of -1. which asks: what number, times itself, and times itself again equals -1? answer: -1.-1*-1*-1 = -1however,(-1)^(1/2k) such as (-1)^(1/2) = sqr(-1). which asks the question: what number, times itself, equals -1? try all day, but you will never find a real solution. so, the representation we have for this is the imaginary number i = sqr(-1). 0 Share this post Link to post Share on other sites