...
While replacing numeric constants with a symbolic constant is often a good practice, it can be taken too far. In this compliant solution, for example, the quadratic theorem is provably correct " with hardcoded hard-coded constants that will never be changedare unlikely to change.
Code Block | ||
---|---|---|
| ||
x = (-b + sqrt(b*b - 4*a*c)) / (2*a); |
...