cos(n x)

cos(m x)

\langle \cos(n x),\ \cos(m x)\rangle=0

n\pm m\neq 0

m = 5 (slider from -5 to 5, step 1)
n = 3 (slider from -5 to 5, step 1)
b = true
c = true
h(x) = cos((n * x))
g(x) = cos((m * x))
f(x) = (h(x) * g(x))
e = Integral(f, 0, (2 * π))
A = (0.9189043779316581, -0.48656547955606305)
B = (2.299490729365617, -0.49005958339122363)
C = (0.9090043824817077, -0.1360363530329308)