// fast accurate way to cube a number
double y = x * x * x;