I am writing a program in Visual Studio 2012 Professional (Windows) in C / C ++, which consists of computing multiple permissions with pow(). I ran the profiler to find out why it took a long time to run, and I found that it was pow()a bottleneck.
I rewrote powers like
pow(x,1.5) before x*sqrt(x)
and
pow(x,1.75) before sqrt(x*x*x*sqrt(x))
which significantly improved the speed of the program.
Several capacities have a look pow(x,1.0/3.0), so I was looking for a cubic root function cbrt()to speed things up, but it seems this is not available in Visual Studio, which I can hardly imagine, so my question is:
Where can I find a function cbrt()in Visual Studio 2012 Professional, and if not, what are the alternatives besides pow(x,1.0/3.0)?
Yours faithfully,