【问题标题】:Maple: Ignore higher order terms in a polynomial with fraction exponentsMaple:忽略具有分数指数的多项式中的高阶项
【发布时间】:2022-09-27 15:25:30
【问题描述】:

我试图忽略 Maple 多项式中的高阶指数。这是我所拥有的一个例子1

我希望我的映射返回 1 + $x^{\\frac{1}{2}}$ +x^3+x$^{\\frac{7}{2}}$。似乎地图完全忽略了任何分数指数......

    标签: polynomials maple exponent


    【解决方案1】:

    由于以下原因,您使用 degree 的尝试不起作用,

    degree(x^(7/2),x);
    
           FAIL
    

    使用这些术语都是x 的权力,你可以处理这个例子,

    remove(t->type(t,identical(x)^rational)
           and op(2,t)>4, m);
    
       1+x^(1/2)+x^3+x^(7/2)
    

    如果您有其他类型的示例,那么您可以分享它们;调整是可能的。

    [编辑]如果你放宽严格的不等式以禁止x^4,那么你也可以通过以下方式(如果你有系数也很方便):

    m := 1 + x^(1/2) + x^3 + x^(7/2)
         + x^6 + x^4 + x^(199/2):
    
    convert(series(m,x,4),polynom);
    
        1+x^(1/2)+x^3+x^(7/2)
    

    与之比较,

    remove(t->type(t,identical(x)^rational)
           and op(2,t)>=4, m);
    
        1+x^(1/2)+x^3+x^(7/2)
    

    【讨论】:

      猜你喜欢
      • 2014-09-20
      • 1970-01-01
      • 1970-01-01
      • 2020-07-22
      • 2020-08-18
      • 1970-01-01
      • 2015-08-31
      • 2015-06-10
      • 1970-01-01
      相关资源
      最近更新 更多