Code covered by the BSD License
by Chebfun Team
30 Apr 2009
(Updated 05 Apr 2012)
Numerical computation with functions instead of numbers.
This file was selected as MATLAB Central Pick of the Week
function pass = blowup_splitting
% Check if blowups and splitting play well together.
% Nick Trefethen 20/11/2009
tol = chebfunpref('eps');
f = chebfun('tan(x)',[0 5],'splitting','on','blowup',1);
pass = (abs(f(3)-tan(3))<100*tol);