wilw8 发表于 2009-10-30 17:49:56

一个关于提取系数的问题

请问用maple如何提取下面式子里f(x)^i*g(x)^j的系数?(coeffs命令会出现错误:Error, invalid input: coeffs expects its 3rd argument, t, to be of type name, but received )
omega*B*f(x)^9+omega*B*f(x)^10*g(x)^4+omega*B*f(x)^8-rho*B*f(x)^11*b*g(x)-6*a^2*alpha*B*f(x)^10-12*a^2*alpha*B*f(x)^11

TBE_Legend 发表于 2009-10-30 19:28:56

请问用maple如何提取下面式子里f(x)^i*g(x)^j的系数?(coeffs命令会出现错误:Error, invalid input: coeffs expects its 3rd argument, t, to be of type name, but received )
omega*B*f(x)^9+o ...
wilw8 发表于 2009-10-30 17:49 http://forum.simwe.com/images/common/back.gif

试试这个行否?


restart;
s := omega*B*f(x)^9+omega*B*f(x)^10*g(x)^4+omega*B*f(x)^8-rho*B*f(x)^11*b*g(x)-6*a^2*alpha*B*f(x)^10-12*a^2*alpha*B*f
(x)^11;
s1:=expand(algsubs(f(x)*g(x)=F,s));
coeffs(s1, F, 't');
t;

maplelab 发表于 2009-10-30 21:54:39

wilw8 发表于 2009-10-31 08:25:07

谢谢楼上二位的热心解答!!!问题解决了:victory:
页: [1]
查看完整版本: 一个关于提取系数的问题