Minimize[ (Cos[t]-EulerGamma)^2 + (1/Pi Sin[t])^2, {t,0, 2 Pi}]