It is puzzling, but it does not seem to be so.

If 1/3 would be a python float, (-1)**(1/3) is not defined under the usual 
definition of x^y = exp(y*ln(x)) with the standard branch cut for the 
logarithmic function. 


If Python includes the negative axis in the domain of ln(x), and defines 
ln(x) = |x| + pi * j, then (-1)**(1/3) indeed gives the primitive cube root 
under the usual definition. So 1/3 is just a float in python. This 
interpretation seems right, since Python doesn't know fractions, a fact 
that I forgot.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/11bd1fc6-1445-47ed-8b6c-1c5dde02489an%40googlegroups.com.

Reply via email to