% Integrals over integrand improper2 can be transformed to integrals over this one.
% The results differ by simple analytical expressions.
function y = improper3(x)
y = 1./sqrt(sin(x)) - 1./sqrt(x) - 1./sqrt(pi-x); % Note that this works when x is an array.

