CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2001
    Posts
    59

    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;




  2. #2
    Join Date
    Feb 2001
    Location
    teh INTARWEB
    Posts
    542

    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
  •  





Click Here to Expand Forum to Full Width

Featured