Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
bgColor#ccccff
x = (-b + sqrt(b*b - 4*a*c)) / (2*a);

...