What you get and what you should be getting: checking numerical code
[Update 24.08.12: added missing alias following comment by brobar] Whenever I write numerical code I spend half my time debugging my algebra, painstakingly uncovering one sign mistake after another in my calculations. Usually I have computed by hand the gradient or the integral of some nasty function, and I have to ... [Read more...]