Failure of the weak maximum principle with a positive zeroth-order coefficient (source code)

= Failure of the weak maximum principle with a positive zeroth-order coefficient

A positive zeroth-order coefficient can destroy the weak maximum principle. On $(0,1)$, the function $u(x)=\sin(\pi x)$ has zero boundary values and a positive interior maximum, but
$$
u''+\pi^2u=0.
$$