多项式四则运算java matlab中两个不同次的多项式怎么实现相加?
matlab中两个不同次的多项式怎么实现相加?信守诺言!例如:F=“x^3 x^2 x 1”g=“x^2 x 1”a=maple(“sort”,F,x)%coefficient sort B=mapl
matlab中两个不同次的多项式怎么实现相加?
信守诺言!例如:F=“x^3 x^2 x 1”g=“x^2 x 1”a=maple(“sort”,F,x)%coefficient sort B=maple(“sort”,g,x)A1=coeffs(a)%F的coefficient B1=coeffs(B)&g的coefficient C=size(A1,2)-size(B1,2)B2=[零(C),B1]d=A1,B2%coefficient M=poly2str(d,“x”)