-
matrix.imag
-
The imaginary part of the array.
Examples
12345>>> x
=
np.sqrt([
1
+
0j
,
0
+
1j
])
>>> x.imag
array([
0.
,
0.70710678
])
>>> x.imag.dtype
dtype(
'float64'
)
matrix.imag

2025-01-10 15:47:30
matrix.imag
The imaginary part of the array.
1 2 3 4 5 | >>> x = np.sqrt([ 1 + 0j , 0 + 1j ]) >>> x.imag array([ 0. , 0.70710678 ]) >>> x.imag.dtype dtype( 'float64' ) |
Designed by : w10schools
service@w10schools.com
Please login to continue.