Search:

Type: Posts; User: Mozza314

Search: Search took 0.01 seconds.

  1. Replies
    33
    Views
    22,762

    Ha, every solution brings another problem :-P. I...

    Ha, every solution brings another problem :-P. I don't know quite what it is about exception handling, but I'm resistant to doing it. I guess I'm more concerned with how my code looks than how the...
  2. Replies
    33
    Views
    22,762

    Updated with lambda functions and...

    Updated with lambda functions and boost::lexical_cast. I also decided to go with fp for the derivative name instead of fPrime, and that x is a less arbitrary initial guess than x / 2.


    #include...
  3. Replies
    33
    Views
    22,762

    Ah yes boost::lexical_cast would be better. I'm...

    Ah yes boost::lexical_cast would be better. I'm not very familiar with C++0x's lambda functions, can they be used in that program without changing NewtonsMethod() ?
  4. Replies
    33
    Views
    22,762

    For a bit of fun, I thought I'd write my version...

    For a bit of fun, I thought I'd write my version of this program. Criticisms encouraged :-).


    #include <cassert>
    #include <cmath>
    #include <cstdlib>
    #include <iostream>

    #include...
Results 1 to 4 of 4