0
why the operation print( 9**(1/2)**2 ) shows the output as 1.7... rather than 9.0
3 ответов
+ 7
Because exponential is measured from right to left not from left to right, so you start by (1/2)**2 = 1/4 then 9**(1/4)
+ 4
remember exponentiation is right associative. therefore (1/2)**2
is 1/4 and 9**{1/4) approximately equals 1.7
+ 2
i think you should use
(9**(1/2*2)) for 9.0