 
 
 
 
 
 
Re: a first-time user question
- To: mathgroup at smc.vnet.net
- Subject: [mg39366] Re: a first-time user question
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Thu, 13 Feb 2003 04:51:45 -0500 (EST)
- Organization: Universitaet Leipzig
- References: <b2d0su$e65$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
- Sender: owner-wri-mathgroup at wolfram.com
Hi,
Needs["Miscellaneous`RealOnly`"]
Plot[x^(2/3), {x, -1, 0}]
works as you expect.
Regards
  Jens
Ye Hu wrote:
> 
> I have a simple (supposedly) question...
> 
> I used the following command to draw a plot, but Mathematica could not run
> properly.
> 
> Plot[x^(2/3),{x,-1,0}]
> 
> 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
> 0.5+0.8i
> How to solve this problem and restrict the solution to be only real numbers?
> 
> Thanks very much.

