Question: problem about assuming

When I input

cos(k*Pi) assuming k::odd

The result is -1

but

(-1)^k assuming k::odd

The result is (-1)^k

Why doesn't the second expression work?

 

Please Wait...