Click to See Complete Forum and Search --> : Computer/Math formula books.


Robert113355
February 21st, 2002, 01:36 PM
Anyone know of any decent books that show simplified mathmatical formulas implemented in code? (I saw an extremely old one that a professor had called "Math Recipes")

For an example there was an question of adding all numbers between 1-n including n. Now I would have done a nice for() loop but there was a much simpler formula in this book for example:

Answer = (n + (n*(n-1))/2); // Bam!
return Answer;

Manish Malik
February 21st, 2002, 02:04 PM
Not simplified, but complex algorithms that require high mathematics can be seen in the book "Numerical Recepies in C".


Manish
http://www.manishmalik.com

Discuss it all at the Developer Forum : http://www.codeguru.com/cgi-bin/bbs/wt/wwwthreads.pl?action=list&Board=devforum ...