MathGroup Archive 1999

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

Search the Archive

Re: New user question


Check out

(-2.5)^1/3

0.6786044041487268 +  1.1753773062255988*I

Mathematica doesn't know how to plot a complex number with Plot, only reals. Try

Plot[{Re[x^(1/3)],Im[x^1/3]},{x,-5,5}] ;

Kevin
--

Kevin J. McCann
Johns Hopkins University APL
Johns Hopkins Road
Laurel MD 20723-6099
240-228-5476


Thomas Moriarty <moriarty at umd5.umd.edu> wrote in message
news:7uefh0$277 at smc.vnet.net...
> 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.
>
> What am I doing wrong?
>
> Thanks
>
>




  • Prev by Date: A simple question? Please help
  • Next by Date: Mathematica for Macintosh Plus i.e. 68000 processors?
  • Previous by thread: Re: New user question
  • Next by thread: Re: New user question