Docsity

Marshall-Lerner Condition, Exercises of Economics

Partial preview of the text

Download Marshall-Lerner Condition and more Exercises Economics in PDF only on Docsity!

Programming the Secant Method

The Secant Method: Review

The secant method is used to approximate the root of a function:

  1. Find two points that are fairly close to each other and to the x-intercept of the function.
  2. Find the equation of the connecting line.
  3. Find where that line crosses the axis.
  4. Repeat using the new point and one of the old points.

The Amazing Thing

Big deal, we found a root. But what this enables us to do is to solve any equation. For example, 3x 2

  • 2sinx = e 2x - x (not solvable) can be changed into… 3x 2
  • 2sinx + x – e 2x = 0 We can find its zeroes/roots using our program and thereby solve the equation.