File newton_raphson.hpp

Functions

template<typename NT, class func>
std::pair<NT, bool> newton_raphson(NT t0, func f, func grad_f, const NT rtol, const NT reg = 0, const unsigned int max_tries = 1000000)

Function implementing the Newton-Raphson numerical method.

Template Parameters:
  • NT – Number type

  • func – Function type