Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

A question about Mathematica

  1. Mar 23, 2005 #1


    User Avatar
    Science Advisor
    Homework Helper

    When I use Solve to solve for the roots of [itex]x^6+1=0[/itex], Mathematica returns the following roots:


    I realize these are derived from the nth roots of unity but I don't understand how Mathematica is assigning the various roots to the various fractional powers of 1/6 and 5/6. For example, if I had used [itex]x^7[/itex], then Mathematica returns values of -1 raised to 4/7, 5/7, and 6/7. How do I know what n-th root is being assigned to the power of 4/7 for example. I know I can evaluate it via N[] but I'd like to know the assignment scheme.

    Anyone know?
  2. jcsd
  3. Jul 7, 2005 #2


    User Avatar
    Homework Helper

    they are assigned by principle value. Like sqrt(4) means 2 normally. It is easier to when looking at the numbers in polar form where the angle is restricted to (-pi,pi]
    z=|z|exp(iArctan(Im(z)/Re(z))=r*exp(i a)=(r<a)
    in other words to find the priciple value of z^x for z complex and x real
    write z=(r<a) with -pi<a<=pi
    where x*a is reduced back into (-pi,pi] if needed.

    note this is not something mathematica does just because. It is the standard convention for principle values of roots. That's why have the high school teachers who say the principle value cube root of -1 is -1 should be dunked in rotten cabage.
    Last edited: Jul 7, 2005
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?

Similar Discussions: A question about Mathematica
  1. Mathematica question (Replies: 1)

  2. Mathematica question (Replies: 4)