What function can i use to get the cube root of a number?

-ty

Printable View

- 12-10-2002gahhhhhCube root
What function can i use to get the cube root of a number?

-ty - 12-10-2002Polymorphic OOP
you can use pow and pass one third as the power parameter. I don't use the standard libraries much so there might be a function devoted to it, but for now you can use that.

- 12-10-2002Mister C
As far as I know there is no power function in C++. There is one in Java however.

- 12-10-2002MadHatter
there is a pow() in the cmath header.

- 12-10-2002alpha
the power function in c++ is pow(double x, double y) in cmath where x is the base and y is the exponent

edit::MadHatter beat me...