If f(x)=cos^2x and g(x)=sin^2x, what is (f+g)(pi/15)

well, that would be

cos^2(pi/15) + sin^2(pi/15) = 1

In fact, (f+g)(x) = 1 for any x.