Ridders' method: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 4:
 
==Method==
Given two values of the independent variable, <math>x_0</math> and <math>x_2</math>, which are on two different sides of the root being sought, i.e.,<math>f(x_0)f(x_2) < 0</math>.The method begins by evaluating the function at the midpoint <math>x_1 = (x_0 +x_2)/2 </math> between the two points. One then finds the unique exponential function of the form <math>e^{ax}</math> such that function <math>h(x)=f(x)e^{ax}</math> satisfies <math>h(x_1)=(h(x_0) +h(x_2))/2 </math>. The false position method is then applied to the transformed values, leading to a new value ''x''<sub>3</sub>, between ''x''<sub>0</sub> and ''x''<sub>2</sub>, which can be used as one of the two bracketing values in the next step of the iteration.
 
The other bracketing value is taken to be ''x''<sub>3</sub> if f(''x''<sub>3</sub>) has the opposite sign to f(''x''<sub>4</sub>), or otherwise whichever of ''x''<sub>1</sub> and ''x''<sub>2</sub> has f(x) of opposite sign to f(''x''<sub>4</sub>).