Code covered by the BSD License

Chebfun

30 Apr 2009 (Updated 05 Apr 2012)

Numerical computation with functions instead of numbers.

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

linop_eye
function pass = linop_eye

% Checks the 10 by 10 realization of the identity operator.
% (A Level 3 chebtest)

d = domain(0,4);
I = eye(d);
pass = norm(I(10)-eye(10)) < eps;