I have two symbolic Expressions and the both contain the same functions, as follows: $$ 3.12592+5.96272 \cos (2 \theta )+5.15739 \cos (4 \theta )+4.00413 \cos (6 \theta )+2.72961 \cos (8 \theta )+2.04608 \cos (10 \theta ) $$ and $$ 2. \text{$\Gamma $5} + 2. \text{$\Gamma $0} \cos (10 \theta )+2. \text{$\Gamma $1} \cos (8 \theta )+2. \text{$\Gamma $2} \cos (6 \theta )+2. \text{$\Gamma $3} \cos (4 \theta )+2. \text{$\Gamma $4} \cos (2 \theta ) $$ I want to solve for the Capital gammas by equating both equations coefficients. I tried Solve and it gave me an error "Equations may not give solutions for all "solve" variables" with the following solution: $$ \text{$\Gamma $5}\to -1. \text{$\Gamma $0} \cos (10. \theta )-1. \text{$\Gamma $1} \cos (8. \theta )-1. \text{$\Gamma $2} \cos (6. \theta )-1. \text{$\Gamma $3} \cos (4. \theta )-1. \text{$\Gamma $4} \cos (2. \theta )+2.98136 \cos (2. \theta )+2.5787 \cos (4. \theta )+2.00206 \cos (6. \theta )+1.3648 \cos (8. \theta )+1.02304 \cos (10. \theta )+1.56296 $$
I also tried Coefficient but it cannot extract the constant from the expression, CoefficientList does not work in this case as it is not a polynomial. Any Ideas? My code:
A=0.05;
zl=50;
z0=500;
n=10;
\[CapitalGamma]=0;
sec\[Theta]m=Cosh[1/n*ArcCosh[Abs[Log[zl/z0]/(2*0.05)]]];
glist=Table[Symbol["\[CapitalGamma]" <> ToString[i]], {i,0, n/2}];
conum=Range[n,Boole[OddQ[n]],-2];
For[i=1,i<=Length[glist],i++,
\[CapitalGamma]= N[2]*glist[[i]] * Cos[conum[[i]]\[Theta]] + \[CapitalGamma]
];
TrigReduce[ChebyshevT[10,sec\[Theta]m*Cos[\[Theta]]]]
\[CapitalGamma]
Solve[TrigReduce[ChebyshevT[10,sec\[Theta]m*Cos[\[Theta]]]] == \[CapitalGamma], glist]