Esempio n. 1
0
        /// <summary>
        /// Finds the value x where f(x) = 0
        /// </summary>
        public double NewtonRaphson(double approx,
		 double xMin, double xMax, double eps, int maxiter)
        {
            SingleVariableEq derivative = new SingleVariableEq(i => this.Derivative(i));
            return new SingleVariableEq(i => i - this.Evaluate(i) / derivative.Evaluate(i)
                ).IterativeSolver(approx, xMin, xMax, eps, maxiter);
        }