I have a function
g[x_] := (x^3 - x^2)^(1/3)
that I want to plot. The plot I am getting gives me strange results. There is nothing plotted for x < 1, contrary to the results that I can obtain from my calculator. Do you have a idea why?
I have a function
g[x_] := (x^3 - x^2)^(1/3)
that I want to plot. The plot I am getting gives me strange results. There is nothing plotted for x < 1, contrary to the results that I can obtain from my calculator. Do you have a idea why?
You probably want to use Surd rather than Power. Mathematica normally treats expressions as complex-valued, which may give results differing from most calculators, which are restricted to the reals. Surd is provided to give calculator-like behavior when that is desired.
g[x_] := Surd[x^3 - x^2, 3]
With[{a = 3}, Plot[g[x], {x, -a, a}]]
Plotthat failed to work properly. It might be related to the result creating an imaginary number. – Jack LaVigne Oct 07 '15 at 19:15Plot[Re@g[x],{x,0,2}]Also, I second Jack LaVinge. – N.J.Evans Oct 07 '15 at 19:17