fractional exponent not working correctly. Error: "negative number to a fractional power not real" [closed]

asked 2016-01-30 10:39:52 -0600

Hi. I'm having a problem with fractional exponents and higher order roots in sage.

If I put (-2)(6/2), sqrt((-2)6), the result is (-8, 8). That's wrong, since sqrt[ (-2)**6 ] = (-1) * (-1) * (-1) = -1. Does anyone know why this is happening, please?

I need to plot a function like V(x) = x^[ (2n+1)/n ], where n is interger. However, sage returns the error 'negative number to a fractional power not real' and plot only the positive branch.

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by tmonteil
close date 2016-01-30 15:58:05.441006