is there any advantage to using this code
double x;
double square = pow(x,2);
instead of this?
double x;
double square = x*
IMHO:
pow(x, 6), maybe some floating point mechanism for a specific processor is implemented, etc.Cheers