function h = mod(x, y)
%MOD   Modulus after division of two CHEBFUN objects.
%   MOD(X, Y) is X - n.*Y where n = floor(X./Y).
%
% See also FLOOR.

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

n = floor(x./y);
h = x - n.*y;

end

chebfun
github-repos/MATLAB/chebfun-chebfun/chebfun-8c49396a55e46ddd57a1d108c6a8f32e37536d54/@chebfun/mod.m
chebfun
github-repos/MATLAB/chebfun-chebfun
8c49396a55e46ddd57a1d108c6a8f32e37536d54