ASKSAGE: Sage Q&A Forum - Individual question feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sat, 25 Apr 2020 18:53:23 -0500fractional exponent not working correctly. Error: "negative number to a fractional power not real"https://ask.sagemath.org/question/32384/fractional-exponent-not-working-correctly-error-negative-number-to-a-fractional-power-not-real/ 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.Sat, 30 Jan 2016 10:39:52 -0600https://ask.sagemath.org/question/32384/fractional-exponent-not-working-correctly-error-negative-number-to-a-fractional-power-not-real/Comment by slelievre for <p>Hi. I'm having a problem with fractional exponents and higher order roots in sage.</p>
<p>If I put (-2)<strong>(6/2), sqrt((-2)</strong>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? </p>
<p>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.</p>
https://ask.sagemath.org/question/32384/fractional-exponent-not-working-correctly-error-negative-number-to-a-fractional-power-not-real/?comment=51028#post-id-51028Duplicate of
- [Ask Sage question 32385: fractional exponents error: "negative number to a fractional power not real"](https://ask.sagemath.org/question/32385)Sat, 25 Apr 2020 18:53:23 -0500https://ask.sagemath.org/question/32384/fractional-exponent-not-working-correctly-error-negative-number-to-a-fractional-power-not-real/?comment=51028#post-id-51028