Orthogonality of Cosines
M.M. Yovanovich
ORTHOGCOSINES.MWS
Orthogonality of Cosines.
>
restart:
with(linalg):
Warning, new definition for norm
Warning, new definition for trace
> matcos:= (m,n)->int(cos(m*Pi*x/L)*cos(n*Pi*x/L), x = 0..L);
Obtain a 10 by 10 matrix to show that all entries except for the diagonal are zeros. This shows that the cosines
have the orthogonality property for different from , otherwise the integral gives for all values .
> matrix(10,10,matcos);
>