|
-
February 21st, 2002, 02:36 PM
#1
Computer/Math formula books.
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;
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|