Working With Inverse of Polynomials

26 次查看(过去 30 天)
Daniel Scrobe
Daniel Scrobe about 5 hours 前
评论: Torsten 41 minutes 前
Hello, this is my first post in this form and I am new to MatLab. I would like to take the inverse of a polynomial in factored form and express the answer in polynomial form. For example, I wish to convert 10/((x+3)^2(x+5)) in regular polynomial form.
  2 个评论
Sam Chak
Sam Chak about 4 hours 前
With the implied multiplication takes precedence, the expression would look like this:
Torsten
Torsten 41 minutes 前
I don't understand how you want to express 10/((x+3)^2(x+5)) in polynomial form. 10/((x+3)^2(x+5)) is not a polynomial.

请先登录,再进行评论。

回答(2 个)

Sam Chak
Sam Chak about 4 hours 前
Are looking for an inverse like this?
syms x
f(x) = 10/((x+3)^2*(x+5))
f(x) = 
g = finverse(f)
g(x) = 

Naga
Naga about 4 hours 前
Hello Daniel,
To convert a polynomial in factored form to regular polynomial form, you can use the poly function in MATLAB. Here's an example:
% Define the factored polynomial
num = 10;
den = conv(conv([1 3], [1 3]), [1 5]);
% Convert to regular polynomial form
coeffs = num * poly(den);
The 'poly' function converts the factored form to regular polynomial form, and then we multiply it by the numerator to get the coefficients of the regular polynomial. Please refer to the following documentation for more information on 'poly' function:
Hope this helps!
  1 个评论
Daniel Scrobe
Daniel Scrobe about 1 hour 前
编辑:Daniel Scrobe about 1 hour 前
Hello Naga,
When I divide the numerator by the denominator, I get an error using the "/" symbol: Matrix dimensions must agree. How would I get rid of the denominator? I was thinking if I could take the inverse of it, I could bring that up into the numerator section.

请先登录,再进行评论。

标签

Community Treasure Hunt

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

Start Hunting!

Translated by