标签: matlab symbols polynomial-math complex-numbers symbolic-math
给定(a+b*i)*c+i等多项式,其中a,b,c被定义为表示三个实数值的符号元素,而i是虚数单位,如何返回该多项式的实部和虚部?
(a+b*i)*c+i
a
b
c
i
答案 0 :(得分:0)
a = sym('a','real'); b = sym('b','real'); c = sym('c','real'); expand(real((a+b*1i)*c+1i))