Code covered by the BSD License  

Highlights from
Chebfun V4

image thumbnail

Chebfun V4

by

 

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

chebop_cumsum
function pass = chebop_cumsum
% Check if the indefinite integral chebop works.

d = [4,5.6];
Q = chebop(@(u) cumsum(u),d);
f = chebfun(@(x) exp(sin(x).^2+2),d);
pass = norm(Q*f - cumsum(f)) < chebfunpref('eps');

Contact us