Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在寻找一种在 Matlab中实现多项式长除法的方法。我的预期结果,例如
哪里x^3-2x^2-4是被除数,x-3是除数
x^3-2x^2-4
x-3
我们能否有任何方法或 matlab 工具来显示所有过程,例如上面的示例。谢谢
u=[1 -2 0 -4]; %coefficients of dividend v=[1 -3]; %coefficients of divisor [r,p,k]=residue(u,v);
你会得到 r=5, p=3, k=[1 1 3] 作为结果。