Code covered by the BSD License
30 Apr 2009
24 Jun 2014)
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);