|
-
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;
-
February 21st, 2002, 03:04 PM
#2
Re: Computer/Math formula books.
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/...Board=devforum ...
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
|