{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# p14: Solve nonlinear BVP \n",
"\n",
"$$\n",
"u_{xx} = exp(u), \\qquad u(-1)=u(1)=0\n",
"$$\n",
"\n",
"by iteration"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"%config InlineBackend.figure_format='svg'\n",
"from numpy import dot,exp,zeros,linspace,polyval,polyfit,inf\n",
"from numpy.linalg import norm\n",
"from chebPy import cheb\n",
"from scipy.linalg import solve\n",
"from matplotlib.pyplot import title,plot"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"data": {
"image/svg+xml": [
"\n",
"\n",
"\n"
],
"text/plain": [
"