symbol - How to return the real/imaginary part of a symbolic polynomial in MATLAB? -


given polynomial such (a+b*i)*c+i, a, b, c defined symbolic elements represent 3 real values , i imaginary unit, how return real part , imaginary part of polynomial?

a = sym('a','real'); b = sym('b','real'); c = sym('c','real'); expand(real((a+b*1i)*c+1i)) 

Comments

Popular posts from this blog

All overlapping substrings matching a java regex -

c++ - Using OpenSSL in a multi-threaded application -

php - Deleting/Renaming a locked file -