integrate [Cos(n π z/L),{z,-L,0}]