MathGroup Archive 2009

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

Search the Archive

Re: Not all points plot on my graph...


davef wrote:
> Why is it when I write this...
> 
> Clear[f, x]
> f[x_] = (x + 2)^(2/3)
> Plot[f[x], {x, -3, 0}, PlotRange -> {{-3, 0}, {-4, 4}}]
> f[-3]
> 
> .. I get no values show in the graph for x<-2 even though f[-3]
> evaluates to (-1)^(2/3).
> 
> (-1)^(2/3) evaluates as f[-3]=1 so why wouldn't the point (-3,1) plot
> on my graph?
> 
> 
(-1)^(2/3) is a complex number, so you can't plot it on a real plot. 
Have a look at:

  (-1)^(2/3)//N

and you will see your mistake.

David Bailey
http://www.dbaileyconsultancy.co.uk


  • Prev by Date: Re: Not all points plot on my graph...
  • Next by Date: Re: Not all points plot on my graph...
  • Previous by thread: Re: Not all points plot on my graph...
  • Next by thread: Re: Not all points plot on my graph...