Code covered by the BSD License  

Highlights from
Chebfun

5.0

5.0 | 8 ratings Rate this file 56 Downloads (last 30 days) File Size: 1.5 MB File ID: #23972
image thumbnail

Chebfun

by Chebfun Team

 

30 Apr 2009 (Updated 16 Nov 2011)

Numerical computation with functions instead of numbers.

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

| Watch this File

File Information
Description

Chebfun is a collection of algorithms and an open-source software system in object-oriented MATLAB which extends familiar powerful methods of numerical computation involving numbers to continuous or piecewise-continuous functions. It also implements continuous analogues of linear algebra notions like the QR decomposition and the SVD, and solves ordinary differential equations. The mathematical basis of the system combines tools of Chebyshev expansions, fast Fourier transform, barycentric interpolation, recursive zerofinding, and automatic differentiation.

Current release: V4.1.1864

Here are three quick examples:

What's the integral of sin(sin(x)) from 0 to 10?
>> x = chebfun('x',[0 10]); sum(sin(sin(x)))
ans = 1.629603118459496

What's the maximum of sin(x)+sin(x2) over the same interval?
>> max(sin(x)+sin(x.^2))
ans = 1.985446580874100

What's the solution to u"-xu=1 with zero boundary conditions on [-20,20]?
>> L = chebop(@(x,u)diff(u,2)-x.*u,[-20,20],'dirichlet'); plot(L\1)

For much more extensive list of more in-depth examples, see http://www.chebfun.org/examples/ and http://www.chebfun.org/examples/new/

The current release is compatible with MATLAB 7.6 (2008a) and more recent versions.
 
Installation instructions:

1. Unzip the contents of the zip file to a directory. We suggest the name "chebfun" for this directory. Make sure to maintain the existing subdirectory structure of the zip package. (Please note: If you install into the "toolbox" subdirectory of the MATLAB program hierarchy, you will need to click the button "Update toolbox path cache" from the File/Preferences... dialog in MATLAB.)

2. In MATLAB, add the chebfun directory to your path. This can be done by selecting "File/Set Path..." from the main or Command window menus. We recommend that you select the "Save" button on this dialog so that chebfuns are on the path automatically in future MATLAB sessions. (Alternatively, you can put an "addpath" command in your startup.m file, as described in the MATLAB documentation.)

3. A restart of MATLAB may be needed if you want to access the user guides via the Help browser.

4. To check whether the system appears to be working, type "chebtest" at the command window prompt. If a problem is reported, please contact discuss@chebfun.org with the details (including output of the "ver" command).

5. Point your web browser to the guide/html directory of the Chebfun installation in order to read the user guides.

Please see the file LICENSE.txt for licensing information. For full documentation, guides, and examples, visit http://www.chebfun.org

Acknowledgements
This submission has inspired the following:
Gauss quadrature nodes and weights., Chebpack
Required Products MATLAB
MATLAB release MATLAB 7.13 (2011b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (12)
02 May 2009 Derek O'Connor

An excellent system. Passed all tests with Matlab R2008a 64 bit with Windows Vista 64.

Read Trefethen's paper "Computing Numerically with Functions Instead of Numbers" which is a nice short introduction to Chebfun.

http://www.comlab.ox.ac.uk/nick.trefethen/home.html

Derek O'Connor

04 May 2009 John D'Errico

I've not tried this out, nor tested it yet. That will take some time. But what I've seen suggests this will be interesting and potentially useful. A lot of effort has been invested here in these tools.

The only thing I'd have liked to see is a published set of demos, with more explanation around how to use it and what the demos are showing. There is a directory (chebtests) of some tests of the tools, but they have virtually no comments in them. Derek has a good suggestion, to read the paper by Trefethen. Here are a few links of interest:

http://www.comlab.ox.ac.uk/nick.trefethen/trefethen_functions.pdf

http://www.comlab.ox.ac.uk/nick.trefethen/ppt_revised.pdf

http://www.comlab.ox.ac.uk/chebfun/publications/driscoll_born_tref.pdf

The papers shown are quite readable. I'd highly recommend them.

My only source of dissatisfaction here is with a lack of examples. These files need extensive demos and DOCUMENTED examples that explain how to use them for the person who might be interested in using them. The fact is, it does not look like that would be difficult to do, and I'd welcome that addition.

My gut says these tools are worth a 5 star rating, IF you know how to use them and what they do. Without a good set of clearly documented examples, my gut wants to rate them as only 4 stars.

07 May 2009 Toby Driscoll

The guide directory included in the package has 8 published scripts that contain dozens of examples in tutorial style. The resulting HTML files are also installed in the Help Browser under the "Chebfun Toolbox" heading.

07 May 2009 John D'Errico

Thanks Tobin - that was what i was looking for. Those files are very readable, clearly explaining what a chebfun is and how to use them. I'll now call this a complete package.

I've had the time to do a little more perusal of these tools now too. They work on my Mac, which is sometimes an issue.

25 May 2009 Erdal Bizkevelci  
11 Jun 2009 Siyi Deng

this toolbox is awesome.

29 Jun 2009 Erdal Bizkevelci  
27 Oct 2011 Jiro Doke

I really like the comprehensive User's Guide that you include with this package.

Do you have a plan to implement this using the new MATLAB Class system?

27 Oct 2011 Chebfun Team

Hi Jiro,

Thanks! We're currently in the process of moving to the new OOP system in our development release, which you can find on our website: http://www.maths.ox.ac.uk/chebfun/

16 Nov 2011 Mark Shore  
16 Nov 2011 Mark Shore

There is just so much to learn from this topnotch collection of powerful routines.

16 Nov 2011 Mark Shore

There is just so much to learn from this topnotch collection of powerful routines.

Please login to add a comment or rating.
Updates
30 Apr 2009

Changed the screenshot of the logo.

10 Jun 2009

New chebfun release v. 2.0501. Release notes can be found at http://web.comlab.ox.ac.uk/projects/chebfun/notes_V2_0501.html

12 Jun 2009

Summary corrected.

21 Jun 2009

Updated license information

08 Jan 2010

Added version number to title and some minor changes to the description.

25 Oct 2011

Updated information on new release.

16 Nov 2011

Updated to most recent software release (V4.1).

16 Nov 2011

The .zip file didn't seem to have been updated in the previous resubmission.

Tag Activity for this File
Tag Applied By Date/Time
numerical analysis Chebfun Team 30 Apr 2009 11:25:36
interpolation Chebfun Team 30 Apr 2009 11:25:36
approximation Chebfun Team 30 Apr 2009 11:25:36
differential equations Chebfun Team 30 Apr 2009 11:25:36
spectral methods Chebfun Team 30 Apr 2009 11:25:36
chebfun Chebfun Team 30 Apr 2009 18:24:33
chebfun Nick Hale 09 May 2009 10:59:26
approximation Nick Hale 10 Jun 2009 12:32:00
pick of the week Lindsay Coutinho 03 Nov 2011 10:53:45
potw Lindsay Coutinho 03 Nov 2011 10:53:45
chebyshev Chebfun Team 16 Nov 2011 11:58:37
rootfinding Chebfun Team 16 Nov 2011 11:58:37
gauss quadrature Chebfun Team 16 Nov 2011 11:58:37
quadrature Chebfun Team 16 Nov 2011 11:58:37
chebfun fg 24 Nov 2011 06:07:56

Contact us at files@mathworks.com