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

infimps
function pass = infimps
% Check that imps are properly set in computations involving exps
%
% Nick Hale, Dec 2009

tol = 2e3*chebfunpref('eps');
gam = chebfun('gamma(x)',[-4:0 4],'blowup','on');
gami = merge(1./gam);
I = gami.*gam;
pass = norm(I-1,inf) < tol;

Contact us