function area = domainarea( f )
%DOMAINAREA    Area of the domain of f.
%   DOMAINAREA(F) returns the area of the domain of f.

% Copyright 2017 by The University of Oxford and The Chebfun Developers.
% See http://www.chebfun.org/ for Chebfun information.

if ( isempty( f ) )
    area = 0;
else
    dom = f.domain; 
    area = diff( dom(1:2) )*diff( dom(3:4) );   
end

end

chebfun
github-repos/MATLAB/chebfun-chebfun/chebfun-8c49396a55e46ddd57a1d108c6a8f32e37536d54/@separableApprox/domainarea.m
chebfun
github-repos/MATLAB/chebfun-chebfun
8c49396a55e46ddd57a1d108c6a8f32e37536d54