by jacquesm · 12y ago · 0 comments
I use that trick a lot, for instance with Euler problem 307 I could not find the answer easily in an analytical way, did the simulation, found an approximate answer (to within 6 decimal places or so), used that to figure out what I was doing wrong and then computed the real answer.
Some may see that as cheating, but it works wonders and not just on that particular problem.