Top "Newtons-method" questions

In numerical analysis, Newton's method (also known as the Newton–Raphson method) is a method for finding successively better approximations to the roots (or zeroes) of a real-valued function.

Writing your own square root function

How do you write your own function for finding the most accurate square root of an integer? After googling it, …

algorithm function math square-root newtons-method
Newton-Raphson Method in Matlab

I am new to matlab and I need to create a function that does n iterations of the Newton-Raphson method …

matlab numerical-methods newtons-method
What is the difference between Gradient Descent and Newton's Gradient Descent?

I understand what Gradient Descent does. Basically it tries to move towards the local optimal solution by slowly moving down …

machine-learning data-mining mathematical-optimization gradient-descent newtons-method
Finding the square root using Newton's method (errors!)

I'm working to finish a math problem that approximates the square root of a number using Newton's guess and check …

python math newtons-method
Newton Raphsons method in Matlab?

Newtons-Raphsons method is easy to implement in Mathematica but in Matlab it seems a bit difficult. I don't get if …

matlab newtons-method
Prevent Matlab from rounding output?

Im running a simple script to estimate roots for a function. Everything works great, each iteration of the algorithm prints …

matlab rounding number-formatting newtons-method
Using MATLAB to write a function that implements Newton's method in two dimensions

I am trying to write a function that implements Newton's method in two dimensions and whilst I have done this, …

matlab newtons-method
ZeroDivisionError: float division

I have got this code to solve Newton's method. But it gives a zero division error. I cannot figure out …

python newtons-method
SciPy optimisation: Newton-CG vs BFGS vs L-BFGS

I am doing an optimisation problem using Scipy, where I am taking a flat network of vertices and bonds of …

python optimization scipy newtons-method
How to find minimum of nonlinear, multivariate function using Newton's method (code not linear algebra)

I'm trying to do some parameter estimation and want to choose parameter estimates that minimize the square error in a …

minimization newtons-method nonlinear-functions