Since the computer will execute only one operation at a time, the order
of precedence determines the order in which the operations are performed.
Intermediate results are computed in the appropriate order.
Let us consider the formula for the roots of the quadratic equation.
float a, b, c;
float x1;
...
x1 = ( -b + sqrt(b*b -4*a*c))/(2*a);
and actually computed as:
float a, b, c;
float x1;
float temp, temp2;
...
temp = b*b;
temp2= a*c;
temp2= 4*temp2;
temp = temp - temp2;
temp = sqrt(temp);
temp = -b + temp;
temp2= 2*a;
x1 = temp/temp2;
Where temp, temp2 are intermediate results.