0
what should be the value of i to the power i where i=square root of -1
logically i should get 0.209 but python gv me an answer of -1.why?
3 odpowiedzi
+ 3
a=complex("j")
print(a**a)
This returns the correct value. Maybe you forgot the ** and wrote * ?
0
my bad i forgot to use root for -1
0
yeah, -1**(-1) is -1...