HomeTom - CS
Friday, April 9, 2010
Newton Ralphson's method to calculate square root
x^2 = n, need to find x.
f(x) = x^2 - n.
x_{n+1} = x_{n} - f(x_{n}) / f ' (x_{n}).
See the following graph for intuition.
Note that the slope of the tangent line is f ' (x_{n}) = f(x_{n}) / {x_{n+1} - x_{n}}.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Blog Archive
►
2019
(1)
►
April
(1)
►
2018
(1)
►
May
(1)
►
2017
(2)
►
April
(2)
►
2016
(5)
►
July
(1)
►
May
(1)
►
February
(2)
►
January
(1)
►
2015
(53)
►
October
(1)
►
September
(7)
►
August
(8)
►
July
(6)
►
June
(1)
►
May
(6)
►
April
(11)
►
March
(10)
►
February
(2)
►
January
(1)
►
2014
(64)
►
November
(4)
►
October
(4)
►
September
(1)
►
August
(4)
►
July
(23)
►
June
(17)
►
May
(2)
►
March
(3)
►
February
(3)
►
January
(3)
►
2013
(27)
►
December
(3)
►
October
(1)
►
August
(3)
►
July
(10)
►
June
(4)
►
March
(5)
►
February
(1)
►
2012
(43)
►
December
(2)
►
November
(5)
►
October
(2)
►
September
(2)
►
August
(5)
►
July
(6)
►
May
(5)
►
April
(5)
►
March
(7)
►
February
(2)
►
January
(2)
►
2011
(60)
►
November
(8)
►
October
(3)
►
September
(6)
►
August
(5)
►
July
(8)
►
June
(9)
►
May
(10)
►
April
(3)
►
February
(3)
►
January
(5)
▼
2010
(67)
►
December
(8)
►
November
(1)
►
October
(1)
►
September
(1)
►
August
(6)
►
July
(11)
►
June
(6)
►
May
(9)
▼
April
(14)
Find median
Find Median of Two Sorted Arrays
Online Algorithm Resources
Max submatrix problem
Check Equality of Two Number Sets
Largest rectangle in histogram problem
IR Evaluation
Garbage collector implementation
Find prime numbers
Newton Ralphson's method to calculate square root
The Frobenius Number
Search in a circular sorted array
The Maximal Rectangle Problem
Young Tableau
►
March
(5)
►
February
(4)
►
January
(1)
►
2009
(20)
►
December
(5)
►
November
(2)
►
October
(2)
►
September
(3)
►
August
(2)
►
July
(4)
►
April
(2)
►
2008
(8)
►
October
(2)
►
July
(3)
►
June
(2)
►
March
(1)
About Me
Tom
View my complete profile
Followers
No comments:
Post a Comment