<SYSTEM_TASK:>
Given the following text problem statement, write Python code to implement the functionality described below in problem statement
<END_TASK>
<USER_TASK:>
Problem:
What is the most efficient way to remove real numbers in a complex array? I have tried numpy.delete and Remove all specific value from array and code of the form x[x != i].
<ASSISTANT_TASK:>
Python Code:
import numpy as np
x = np.array([-2+1j, -1.4, -1.1, 0, 1.2, 2.2+2j, 3.1, 4.4, 8.3, 9.9, 10+0j, 14, 16.2])
result = x[x.imag !=0]
<END_TASK>