Examples of chebfun codes

Here are some examples of chebfun/chebop programs for users to download and play with. For the moment, they are offered without much documentation or other organization. If you have some examples of your own you would like to share, please contact us.

Roots and optimization

besselcount.m  Counts the number of roots of J0(x) in interval [a,b]

Quasimatrices

avoidance.m  Non-crossing eigenvalue curves as matrix A is morphed to matrix B

Complex chebfuns

complexplot.m  Plots the image of a grid in the unit square under a function f
contourint.m  A complex "keyhole contour" integral

Differential equations and chebops

resonance.m  Resonance of the 1D Helmholtz equation near certain wave numbers
packet.m  Wave packet (pseudo)resonance of a space-dependent operator
erosion.m  Solution of 1D heat equation via chebop operator exponential expm(L)
carrier.m  Solution of a nonlinear ODE BVP by Newton iteration
orrsomm.m  Eigenvalues of the Orr-Sommerfeld operator for plane Poiseuille flow