Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from __future__ import print_function
- import numpy as np
- Z = np.array([
- [(0.006807721430203688, -81.46897205040608), (0.003415323421254521, 28.39278436997311)],
- [(0.005655394562415266, -3.9653893889864045), (0.0012579228508627063, -0.004793001022412831)],
- [(0.0011839417577218592, 0.003367610034685792),(0.0009527970980828063, 0.009237864349152691)]
- ])
- C = Z[:,:,0] + 1j * Z[:,:,1]
- # ---------------------------------------------
- print('\n--- Z[:,:,0] ---\n')
- print( Z[:,:,0] )
- # ---------------------------------------------
- print('\n--- Z[:,:,0] + 1j * Z[:,:,1] ---\n')
- print(C)
- # ---------------------------------------------
- print('\n--- np.real(C) ---\n')
- print(np.real(C))
- # ---------------------------------------------
- '''
- --- Z[:,:,0] ---
- [[ 0.00680772 0.00341532]
- [ 0.00565539 0.00125792]
- [ 0.00118394 0.0009528 ]]
- --- Z[:,:,0] + 1j * Z[:,:,1] ---
- [[ 0.00680772 -8.14689721e+01j 0.00341532 +2.83927844e+01j]
- [ 0.00565539 -3.96538939e+00j 0.00125792 -4.79300102e-03j]
- [ 0.00118394 +3.36761003e-03j 0.00095280 +9.23786435e-03j]]
- --- np.real(C) ---
- [[ 0.00680772 0.00341532]
- [ 0.00565539 0.00125792]
- [ 0.00118394 0.0009528 ]]
- '''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement