# Module Scientific.Functions.FindRoot

## Functions

- newtonRaphson(function, lox, hix, xacc)

  Finds the root of function which is bracketed by values lox and hix to an accuracy of +/- xacc. The algorithm used is a safe version of Newton-Raphson (see page 366 of NR in C, 2ed). function must be a function of one variable, and may only use operations defined for the DerivVar objects in the module FirstDerivatives.

  Example:

      from Scientific.Functions.FindRoot import newtonRaphson
      from math import pi
      def func(x):
          return (2*x*cos(x) - sin(x))*cos(x) - x + pi/4.0
      newtonRaphson(func, 0.0, 1.0, 1.0e-12)

  yields `0.952847864655`.