MathGroup Archive 2003

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

Search the Archive

RE: Plotting Root Functions

  • To: mathgroup at
  • Subject: [mg39375] RE: [mg39352] Plotting Root Functions
  • From: "David Park" <djmp at>
  • Date: Thu, 13 Feb 2003 04:52:55 -0500 (EST)
  • Sender: owner-wri-mathgroup at

Ye Hu,

Yes, Mathematica returns the complex value which Plot can't handle. But you
can get it to return the real value by loading the package...

<< Miscellaneous`RealOnly`

Plot[x^(2/3), {x, -1, 0}]

Ted Ersek also has a package, SwitchableRealOnly, on MathSource that allows
you to turn the feature off and on.

David Park
djmp at

From: Ye Hu [mailto:huye at]
To: mathgroup at

I have a simple (supposedly) question...

I used the following command to draw a plot, but Mathematica could not run


I know the problem is about calculating (-1)^(1/3) in mathematica. Although
(-1)^(1/3) = -1,
mathematica tries to calculate it numerically and gives complex results
How to solve this problem and restrict the solution to be only real numbers?

Thanks very much.

  • Prev by Date: Re: Linear and logarithmic fit
  • Next by Date: Problems evaluating Grad
  • Previous by thread: Re: Re: a first-time user question
  • Next by thread: Problems evaluating Grad