How to divide a polynomial into two polynomials, one with the odd coefficients of w and the other with the even coefficients of w?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Alex Muniz
am 24 Okt. 2022
Bearbeitet: Torsten
am 24 Okt. 2022
I have the polynomial p(w) described below and I need to split it into two polynomials one with odd coefficients of w and the other with even coefficients of w, how can I do that?
P(w) = 25*ki - w^4*(kd + 1) + w*(25*kp - 1)*1i + w^3*(kp + 33/5)*1i + w^2*(ki - 25*kd + 41/5)
3 Kommentare
Akzeptierte Antwort
Torsten
am 24 Okt. 2022
Bearbeitet: Torsten
am 24 Okt. 2022
Odd part:
(P(w) - P(-w))/2
Even part:
(P(w) + P(-w))/2
syms w kd ki kp
P(w) = 25*ki - w^4*(kd + 1) + w*(25*kp - 1)*1i + w^3*(kp + 33/5)*1i + w^2*( ki - 25*kd + 41/5);
P_odd(w) = (P(w)-P(-w))/2
P_even(w) = (P(w) + P(-w))/2
P_odd(w) + P_even(w) - P(w)
1 Kommentar
Weitere Antworten (0)
Siehe auch
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!