Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
给定一个多项式如(a+b*i)*c+i, 其中a, b,c被定义为符号元素来表示三个实数值并且i是虚数单位,如何返回这个多项式的实部和虚部?
(a+b*i)*c+i
a
b
c
i
a = sym('a','real'); b = sym('b','real'); c = sym('c','real'); expand(real((a+b*1i)*c+1i))