( integrate (A cos((2 Pi/T) t))^2 from 0 to T ) / T