is it possible to multiply 2 symbolic polynomials?
54 次查看(过去 30 天)
显示 更早的评论
for example if i have
f=[34 43 5]
%and
h=[32 34 4]
% i can use the (conv command) and obtain the resultant polynomial
fh=conv(f,h)
%what about
fsym=poly2sym(f)
%and
hsym=poly2sym(h)
is there any way i can multiply them ?
0 个评论
采纳的回答
Star Strider
2022-5-12
The easiest way to find out is to do the experiment —
syms x
f=[34 43 5]
%and
h=[32 34 4]
% i can use the (conv command) and obtain the resultant polynomial
fh=conv(f,h)
%what about
fsym=poly2sym(f,x)
%and
hsym=poly2sym(h,x)
polyprod = fsym * hsym
polyprod = expand(polyprod)
polyprod = simplify(polyprod,500)
.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Polynomials 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!