 #jsDisabledContent { display:none; } My Account |  Register |  Help Flag as Inappropriate This article will be permanently flagged as inappropriate and made unaccessible to everyone. Are you certain this article is inappropriate?          Excessive Violence          Sexual Content          Political / Social Email this Article Email Address:

# Chebfun

Article Id: WHEBN0029095224
Reproduction Date:

 Title: Chebfun Author: World Heritage Encyclopedia Language: English Subject: Collection: Publisher: World Heritage Encyclopedia Publication Date:

### Chebfun

 Developer(s) The Chebfun team, University of Oxford v5.0 / June, 21st 2014 MATLAB Numerical software BSD .org.chebfunwww

Chebfun is a free/open-source software system written in MATLAB for numerical computation with functions of a real variable. It is based on the idea of overloading MATLAB's commands for vectors and matrices to analogous commands for functions and operators. Thus, for example, whereas the SUM command in MATLAB adds up the elements of a vector, the SUM command in Chebfun evaluates a definite integral. Similarly the backslash command in MATLAB becomes a Chebfun command for solving differential equations.

The mathematical basis of Chebfun is numerical algorithms involving piecewise polynomial interpolants and Chebyshev polynomials, and this is where the name "Cheb" comes from. The package aims to combine the feel of symbolic computing systems like Maple and Mathematica with the speed of floating-point numerics.

The Chebfun project is based in the Mathematical Institute at the University of Oxford and was initiated in 2002 by Lloyd N. Trefethen and his student Zachary Battles. The most recent version, Version 5.0, was released in June 2014.

On the 4th of March 2013 Chebfun2, a software system that extends Chebfun to two dimensions, was made publicly available.

## Features

• Approximation of functions
• Rootfinding
• 1D global optimisation
• Ordinary differential equations
• Partial differential equations
• Approximation of smooth bivariate functions (Chebfun2)
• Bivariate rootfinding
• Vector calculus

## Example usage

A user may begin by initialising the variable x, on the interval [0,10], say.

```>> x = chebfun('x',[0,10]);
```

This variable can now be used to perform further computations, for example, computing and plotting roots of a function:

```>> f = sin(x) + sin(x.^2);  plot(f)
>> r = roots(f); hold on, plot(r,f(r),'.r'), hold off
```

The definite integral can be computed with:

```>> sum(f)
ans
= 2.422742429006079
```