How to find roots of complex quadratic and keep a variable in variable form?
1 view (last 30 days)
Show older comments
Essentially, I'm trying to find the complex roots of POLY
where POLY = A*E -B*D
and A = 19.9 - i4.1 - 3.2X, B = -11.4 - i2.5, D = 2.5 + i1.2, E = 9.2 - i2.4 - 5X,
I do know the value of X.
So first question is how to keep the variable X in variable form when calculating POLY?
So it looks like 16X^2 +(-129+i28)X + 200 -i64.4 instead of using the value for X
Second, how to find the 2 complex roots of POLY?
I know I can do this on paper, but I wanted to know if this is possible in coding form?
0 Comments
Accepted Answer
Walter Roberson
on 17 Apr 2014
If you have the symbolic toolbox then
syms x
A = 19.9 - 4.1i - 3.2*X;
B = -11.4 - 2.5i;
D = 2.5 + 1.2i;
E = 9.2 - 2.4i - 5*X;
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!