Question: Why am i getting complex answer?

I'm not sure why im getting a complex solution for evalf(h(-1/2)). Posted screenshot here:

The answer should be positive 6*2^(2/3) ≈ 9.52

 The computer returns

h(-1/2) =


The problem is that evalf((-1)^(1/3)) you get 0.500 + .866I

Is there no way to evaluate a second derivative of a real valued function which has a fractional exponent without receiving complex results? I don't have the time to look at each function and try to figure out what went wrong. I want to plug in any x value into a function defined for all reals and get a real result.

I tried  assume(x , 'real' ) , that did not do anything.



Please Wait...