{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# p33: Solve linear BVP, Neumann bc\n",
"\n",
"$$\n",
"u_{xx} = \\exp(4x)\n",
"$$\n",
"\n",
"$$\n",
"u'(-1)=0, \\qquad u(1)=0\n",
"$$"
]
},
{
"cell_type": "code",
"execution_count": 9,
"metadata": {},
"outputs": [],
"source": [
"%config InlineBackend.figure_format='svg'\n",
"from chebPy import *\n",
"from numpy import dot,exp,zeros,max,linspace,polyval,polyfit,inf\n",
"from numpy.linalg import norm\n",
"from scipy.linalg import solve\n",
"from matplotlib.pyplot import title,plot,xlabel,ylabel,grid"
]
},
{
"cell_type": "code",
"execution_count": 10,
"metadata": {},
"outputs": [
{
"data": {
"image/svg+xml": [
"\n",
"\n",
"\n"
],
"text/plain": [
"