Advice: Fractional powers of negative numbers

Maple's mathematics is largely based on complex numbers rather than real numbers. In particular, it uses the "principal branch" of fractional powers: the principal branch of z^(1/n) has argument between -Pi/n and Pi/n , and the argument of (-1)^(1/n) is Pi/n .
So for example:

> evalc((-1)^(1/5));

cos(1/5*Pi)+I*sin(1/5*Pi)

> evalf(%);

.8090169943+.5877852524*I

> evalf(argument(%)/Pi);

.2000000000

The surd function provides "elementary" n 'th roots, i.e. if x is a negative number and n is odd, then surd(x,n) is the real (negative) n 'th root of x .

> surd(-8,3);

-2

In order to have a somewhat nicer syntax, as well as covering rational exponents with numerators other than 1, I have defined an infix-form operator &^ . This is part of the Maple Advisor Database.

> (-1)&^(2/5), (-1) &^ (3/5);

1, -1

For positive x , `&^`(x,p) is the same as x^p . For negative x , if p = m/n is a fraction we have the following cases:

> assume(x<0);

m and n both odd: `&^`(x,m/n) = -(-x)^(m/n)

> x &^ (3/5);

-(-x)^(3/5)

m even, n odd: `&^`(x,m/n) = (-x)^(m/n)

> x &^ (4/5);

(-x)^(4/5)

m odd, n even: `&^`(x,m/n) is complex.

> x &^ (3/8);

(-1)^(7/8)*(-x)^(3/8)

When x is not known to be real, and p is a fraction, `&^`(x,p) is written as a surd. When p is given in decimal form, it is converted to a fraction.

> x:= 'x': x &^ (3/8);

surd(x^3,8)

> x &^ 0.375;

surd(x^3,8)

> plot(x &^ (2/3), x = -1 .. 1);

[Maple Plot]

> plot(x &^ (3/5), x = -1 .. 1);

[Maple Plot]

See also: ^ , &^ , surd

Maple Advisor Database R. Israel, 1998