To evaluate the expression (1 + 1i) * [a; a; a; -a; -a; a; -a; -a; a; a; a; -a; a; -a; a; a], we need to perform element-wise multiplication between the complex number (1 + 1i) and each element in the given list.

The given list is: a = [1, 1, 1, 1, 1, 1, -1, -1, 1, -1, 1, -1, 1, -1, -1, 1]

Let's perform the element-wise multiplication:

(1 + 1i) * 1 = (1 + 1i) (1 + 1i) * 1 = (1 + 1i) (1 + 1i) * 1 = (1 + 1i) (1 + 1i) * 1 = (1 + 1i) (1 + 1i) * 1 = (1 + 1i) (1 + 1i) * 1 = (1 + 1i) (1 + 1i) * -1 = (-1 - 1i) (1 + 1i) * -1 = (-1 - 1i) (1 + 1i) * 1 = (1 + 1i) (1 + 1i) * -1 = (-1 - 1i) (1 + 1i) * 1 = (1 + 1i) (1 + 1i) * -1 = (-1 - 1i) (1 + 1i) * 1 = (1 + 1i) (1 + 1i) * -1 = (-1 - 1i) (1 + 1i) * 1 = (1 + 1i) (1 + 1i) * 1 = (1 + 1i)

Therefore, the result of the expression is: [(1 + 1i), (1 + 1i), (1 + 1i), (1 + 1i), (1 + 1i), (1 + 1i), (-1 - 1i), (-1 - 1i), (1 + 1i), (-1 - 1i), (1 + 1i), (-1 - 1i), (1 + 1i), (-1 - 1i), (1 + 1i), (1 + 1i)]

a = 1 1 1 1 1 1 -1 -1 1 -1 1 -1 1 -1 -1 11 +1i a; a; a; -a; -a; a; -a; -a; a; a; a; -a; a; -a; a; a

原文地址: https://www.cveoy.top/t/topic/i381 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录