Ask Your Question

DiegoQuantico's profile - activity

2020-04-26 03:09:33 +0200 received badge  Student (source)
2019-03-22 02:25:13 +0200 received badge  Popular Question (source)
2018-12-16 21:19:03 +0200 received badge  Popular Question (source)
2018-12-16 21:19:03 +0200 received badge  Notable Question (source)
2018-12-16 21:19:03 +0200 received badge  Famous Question (source)
2016-01-31 21:07:41 +0200 commented answer fractional exponents error: "negative number to a fractional power not real"

Thanks, Tmonteil. My problem is exaclty what you wrote in sage lines.

I need to plot a potential function of the form V(x) = x^(7/3) corresponding to n = 3 as I pointed before. However, sage plots only for x positive and return negative number to a fractional power not real. In fact, for x = (-1), sage returns V(-1) = 0.500000000000000 + 0.866025403784439*I instead of -1 which is the answer of physical interest.

Why sage always chooses the complex root? How do I overcome this issue?

2016-01-31 21:07:41 +0200 answered a question fractional exponents error: "negative number to a fractional power not real"

Thanks, Tmonteil. My problem is exaclty what you wrote in sage lines.

I need to plot a potential function of the form V(x) = x^(7/3) corresponding to n = 3 as I pointed before. However, sage plots only for x positive and return 'negative number to a fractional power not real'. In fact, for x = (-1), sage returns V(-1) = 0.500000000000000 + 0.866025403784439*I instead of -1 which is the answer of physical interest.

Why sage always chooses the complex root? How do I overcome this issue?

2016-01-30 22:55:33 +0200 asked a question fractional exponents 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 ] = (-2) * (-2) * (-2) = -8. 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.

2016-01-30 22:55:33 +0200 asked a question 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.