Out[1] = 7.0 for Microsoft Windows (32-bit) (February 18, 2009)
In[2] := Integrate[Cos[Pi z] Cos[z]^Pi, {z, 0, Pi/2}]
Out[2] = 0
In[3] := NIntegrate[Cos[Pi z] Cos[z]^Pi, {z, 0, Pi/2}]
Out[3] = 0.177994
Good to have you back. One should perhaps add to this exhibit that the
exact answer is 2^(-pi-1)*pi (cf. Gradshteyn-Ryshik 3.631 9). But I fear
they are deaf to new bug reports at WRI just now: They should be deep
into a collective encyclopedia on elementary two-dimensional
integration, comprising one 600-page-plus volume per Risch integrator
specialist.
Martin.
PS: Newsgroups comp.soft-sys.matlab and sci.math.num-analysis were
removed since aioe.org permits only three groups at most.