I checked the test to test the performance of sqrt(x) and pow(x,0.5)
one.
for(int i=0;i<100000000;i++) pow(double(i),0.5);
2.
for(int i=0;i<100000000;i++) sqrt(double(i));
1st place took about 20 seconds, when on my computer 2 seconds took about 2 seconds. Thus, performance is much better. Like others, the readability already mentioned is another reason.
banarun
source share