I'd like to write good statements in terms of speed and accuracy. If I remember correctly this line: b=(a+1)*a
produces a better program than this: b=(a^2+a)
.
This is just an example, might be wrong but doesn't matter now, the question is: Where I can find a compendium of good practices for scientific computing?