MathGroup Archive 1999

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: New user question

  • To: mathgroup at
  • Subject: [mg20394] Re: [mg20383] New user question
  • From: BobHanlon at
  • Date: Tue, 26 Oct 1999 00:32:50 -0400
  • Sender: owner-wri-mathgroup at

Solve[y^3 == -4, y] // N

{{y -> 0.7937005259840992 - 1.3747296369986026*I}, 
  {y -> -1.5874010519681991}, 
  {y -> 0.7937005259840998 + 1.3747296369986022*I}}

For a negative argument, the default cube root is complex


0.7937005259840998 + 1.3747296369986022*I

Since you are only interested in the real root

Plot[Sign[x] * Abs[x^(1/3)], {x, -5, 5}];

Bob Hanlon

In a message dated 10/18/1999 5:28:30 AM, moriarty at writes:

>I have just begun to use/learn Mathematica.  One of the first things I
>tried was to Plot[x^(1/3),{x,-5,5}] and got error messages indicating that
>the negatives^(1/3) were not machine level real numbers (or close to
>that) - the positive side displayed ok.

  • Prev by Date: iteration control
  • Next by Date: HTMLSave v3.0
  • Previous by thread: New user question
  • Next by thread: Re: New user question