How to expand fully with complex numbers?
6 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Marissa van Wyngaardt
il 12 Ott 2018
Commentato: madhan ravi
il 13 Ott 2018
Hello all,
Might be a rookie question but I am wondering how to do FOIL multiplication with complex numbers. This far I've managed to get something displaying a polynomial As^4 + Bs^3 + Cs^2 + ... , however all coefficients are complex numbers and I would like the imaginary components of these to cancel out as they do when performing this by hand.
Even a point in the right direction would be appreciated!
0 Commenti
Risposta accettata
madhan ravi
il 12 Ott 2018
Modificato: madhan ravi
il 12 Ott 2018
clear all %an example
syms x
polynomial=i*x-x.^2 %i indicates imaginary number
a = coeffs(polynomial)
real(a)
2 Commenti
Più risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!