Andylee 发表于 2011-7-23 17:50:46

多项式化简问题

本帖最后由 Andylee 于 2011-7-23 17:54 编辑

多项式里面每一项都含有sin( )的项,我将这个多项式除以sin( ),为什么有时候能除去,有时候化简不了呢?代码及结果如下
eq1 := ks*Q144*(diff(w, `$`(x, 2))-(diff(theta, x)))-(1/4)*l^2*Q244*(diff(w, `$`(x, 4))+diff(theta, `$`(x, 3)))-m0*(diff(w, `$`(t, 2)))

eq1 := ks*Q144*(-w0*sin(n*Pi*x/L)*n^2*Pi^2*exp(I*omega*t)/L^2+theta0*sin(n*Pi*x/L)*n*Pi*exp(I*omega*t)/L)-(1/4)*l^2*Q244*(w0*sin(n*Pi*x/L)*n^4*Pi^4*exp(I*omega*t)/L^4+theta0*sin(n*Pi*x/L)*n^3*Pi^3*exp(I*omega*t)/L^3)+m0*w0*sin(n*Pi*x/L)*omega^2*exp(I*omega*t)

eq1里面每一项都有sin(n*pi*x/L)和exp(I*omega*t),我要把eq1里的sin和exp除去,用下面代码
eq1 := eq1/(sin(n*Pi*x/L)*exp(I*omega*t))
得到的结果为什么不是最简的呢,结果如下
                            /      /      /n Pi x\2   2               
                            |      |w0 sin|------| nPiexp(I omega t)
             1            |      |      \L   /                     
-------------------------- |ks Q144 |- ------------------------------------
    /n Pi x\                |      |                  2               
sin|------| exp(I omega t) \      \                   L                  
    \L   /                                                               
                /n Pi x\                  \             /
      theta0 sin|------| n Pi exp(I omega t)|             |
                \L   /                  |   12      |
    + --------------------------------------| - - lQ244 |
                        L                   |   4         |
                                          /             \
         /n Pi x\4   4               
   w0 sin|------| nPiexp(I omega t)
         \L   /                     
   ------------------------------------
                     4               
                  L                  
                /n Pi x\3   3               \
      theta0 sin|------| nPiexp(I omega t)|
                \L   /                      |
    + ----------------------------------------|
                        3                   |
                         L                  /
                                             \
                                             |
               /n Pi x\      2               |
    + m0 w0 sin|------| omegaexp(I omega t)|
               \L   /                      |
                                             /
>
我有用
eq1:=simplify(eq1)/(sin(n*Pi*x/L)*exp(I*omega*t))
得到的结果只化简了exp的项,分子分母都含有sin项,
我把sin和exp换了下位置就化简了,这是为什么

请高手指点
页: [1]
查看完整版本: 多项式化简问题