Filter löschen
Filter löschen

how to multipy two polynomial expression?

82 Ansichten (letzte 30 Tage)
faa nad
faa nad am 3 Nov. 2011
Kommentiert: Foysal Ahmmed am 20 Aug. 2021
hi i have to multiply two polynomial equations example:a=1+x+x^2 b=1+X output should be 1+2x+2x^2+x^3 plz do reply...

Akzeptierte Antwort

Andrei Bobrov
Andrei Bobrov am 3 Nov. 2011
syms x
a=1+x+x^2
b=1+x
out = expand(a*b)
or
coeffa = [1 1 1];
coeffb = [1 1];
out = conv(coeffa,coeffb);
  3 Kommentare
Vikas AsodariyAa
Vikas AsodariyAa am 8 Aug. 2021
it's helpful sir. Thank you
Foysal Ahmmed
Foysal Ahmmed am 20 Aug. 2021
Thank you very much Andrei Bovrov.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Polynomials finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by