function [ y ] = squiggle( x )
% SQUIGGLE A more or less linear function with a sinusoidal "squiggle"

if x < -pi
    y = -( x + pi );
elseif x <= pi
    y = sin( x );
else
    y = -(x - pi);
end

end

