function f = imag(f)
%IMAG   Imaginary part of a CLASSICFUN.
%   IMAG(F) is the imaginary part of F.
%
% See also REAL, ISREAL, CONJ.

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

% Assign the ONEFUN to be the imaginary part of the ONEFUN of the input:
f.onefun = imag(f.onefun);

end
