{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Secant method"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Given initial guess $x_0$, $x_1$, we find the next estimate by\n",
"$$\n",
"x_2 = x_1 - f(x_1) \\frac{x_1 - x_0}{f(x_1) - f(x_0)}\n",
"$$\n",
"We iterate until\n",
"$$\n",
"|x_2 - x_1| < |x_2| \\epsilon\n",
"$$\n",
"Let us find roots of\n",
"$$\n",
"f(x) = \\exp(x) - \\frac{3}{2} - \\arctan(x)\n",
"$$"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"data": {
"image/svg+xml": [
"\n",
"\n",
"\n",
"\n"
],
"text/plain": [
"