morenoingrato said:
|
Sorry, using 1/3 as the second parameter gives it the idea that the value should be evaluated as an integer, when it should be a float. try pow(x, 1.0 / 3.0 )
edit: for clarification, when 1/3 is evaluated as an integer, it returns 0. Anything to the 0 power will be one. Therefore, the reason you are getting one is that x^0 will always be solved as 1.







