1

When use the following command to plot a graph

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

figure

Mathematica does not show the range [0, 1]. It does not show the range [-1, 0]. While for function 1/x it does.

Plot[1/x, {x, -1, 1}]

figure

How can I make Mathematica show the range specified for x^(1/3) ?

Sektor
  • 3,320
  • 7
  • 27
  • 36
Ben Wu
  • 11
  • 1

1 Answers1

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

or plotting the modulus:

Plot[Abs[x^(1/3)], {x, -1, 1}]
  • 1
    With PlotRange->Full, Mathematica still only show the positive range. (I use Mathematica 9.) – Ben Wu Jul 04 '15 at 21:40