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

exact_endpoints
function pass = exact_endpoints
% Test whether endpoints are interpolated (exactly):
% Rodrigo Platte, May 2009

s = chebfunpref('splitting');
splitting on

f = chebfun(@(x) sin(500*x));
ends = f.ends;
pass = all(f(ends) == sin(500*ends));

chebfunpref('splitting',s);

Contact us