Question: different coeff

Hi,

I want to get the coefficient of some terms but I can't define suitable codes to do it:

I used the codes of one question on this site namely

https://www.mapleprimes.com/questions/229770-How-To-Find-The-Coefficient-Of-X-X2and

but they do not work for my case.

My case is as follows:

restart;
F:=2*y*sin(beta*x)+6*z*cos(beta*x)+24*sin(beta*x)*cos(beta*x):

coeff(F,sin(beta*x));
                      2 y + 24 cos(beta x)
coeff(F,cos(beta*x));
                      6 z + 24 sin(beta x)

coeff(coeff(F,cos(beta*x)),sin(beta*x));
                      24
The last one is true but for the first two cases, I want to get 2y and 6z respectively.

Please Wait...