多項(xiàng)式四則運(yùn)算java matlab中兩個(gè)不同次的多項(xiàng)式怎么實(shí)現(xiàn)相加?
matlab中兩個(gè)不同次的多項(xiàng)式怎么實(shí)現(xiàn)相加?信守諾言!例如:F=“x^3 x^2 x 1”g=“x^2 x 1”a=maple(“sort”,F(xiàn),x)%coefficient sort B=mapl
matlab中兩個(gè)不同次的多項(xiàng)式怎么實(shí)現(xiàn)相加?
信守諾言!例如:F=“x^3 x^2 x 1”g=“x^2 x 1”a=maple(“sort”,F(xiàn),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”)