Here is a piece of my program. Have a look.
For[m = 1, m <= mode1, m++,
For[n = 0, n <= mode2, n++,
A[m, n][t_] = a[m, n]*Cos[\[Omega]*t];
B[m, n][t_] = b[m, n]*Cos[\[Omega]*t];
]
]
temp = 0;
For[m = 1, m <= mode1, m++,
For[n = 0, n <= mode2, n++,
temp++;
equation[temp] =
ExpandAll[Integrate[eqC[m, n]*Cos[\[Omega]*t], {t, 0, (2*Pi)/\[Omega]}]];
equation[temp] = ExpandAll[Simplify[equation[temp]/10^9]];
Print["\n\nEquation ", temp, "-\n", equation[temp]];
temp++;
equation[temp] =
ExpandAll[Integrate[eqS[m, n]*Cos[\[Omega]*t], {t, 0, (2*Pi)/\[Omega]}]];
equation[temp] = ExpandAll[Simplify[equation[temp]/10^9]];
Print["\n\nEquation ", temp, "-\n", equation[temp]];
]
]
After running of this code I am supposed to get few equations and then create a matrix out of it by a series of differentiations. I know that the matrix must come out to be symmetric. The problem is that when I enter simple data i.e. e=1,h=1, etc. I get accurate results and the matrix is symmetric, but as soon as I give the real data which have values like 71.02e9,0.000247 the calculations come out to be wrong and I get an unsymmetric matrix. I have thoroughly checked the code and cannot find a single mistake on my part. I have also checked the results of the program for a simple case with manual calculations.