{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# p26: Eigenvalues of 2nd order Chebyshev diff. matrix"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
"%config InlineBackend.figure_format='svg'\n",
"from chebPy import *\n",
"from numpy import dot,argsort,diag,real,imag,pi,array,polyfit,polyval,zeros\n",
"from numpy.linalg import eig\n",
"from matplotlib.pyplot import figure,loglog,semilogy,plot,title,ylabel,text,xlim"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"/var/folders/bf/9z7c3wfn7033kh93rp599rg00000gn/T/ipykernel_5022/2068344369.py:18: RankWarning: Polyfit may be poorly conditioned\n",
" vv = polyval(polyfit(x,vN4,N),xx)\n"
]
},
{
"data": {
"image/svg+xml": [
"\n",
"\n",
"\n"
],
"text/plain": [
"