Code covered by the BSD License  

Highlights from
Chebfun V4

image thumbnail

Chebfun V4



30 Apr 2009 (Updated )

Numerical computation with functions instead of numbers.

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

function pass = sinx

% (by Rodrigo Platte)
% This test constructs a chebfun from a complicated
% function that gets split into 8 pieces.
% It checks that the pieces all have equal length.
% (A Level 1 chebtest)

f = chebfun(@(x) sin(x), [0 1e3],'splitting','on');
pass = all(diff(diff(f.ends)) == 0);

Contact us