MATLAB: How can get roots of polynomial having variables in denominator.

MATLABpolynomialsymbolic

Let
F(x)= (x^2+1)/(x+1)+(2*x^2+3)/(x+2)=0,
With syms x,
How can we find the roots of F(x).?

Best Answer

Read about vpasolve.
syms x
F = (x^2+1)/(x+1)+(2*x^2+3)/(x+2)==0 ;
r = vpasolve(F)
Related Question