Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

complex arrays python

>>> import numpy as np
>>> x = 1 + 2 * 1j
>>> C = np.zeros((2,2),dtype=np.complex_)
>>> C
array([[ 0.+0.j,  0.+0.j],
       [ 0.+0.j,  0.+0.j]])
>>> C[0,0] = 1+1j + x
>>> C
array([[ 2.+3.j,  0.+0.j],
       [ 0.+0.j,  0.+0.j]])
Comment

PREVIOUS NEXT
Code Example
Python :: plot second axis plotly 
Python :: discord.py read embed on message 
Python :: como transformar texto a audio y reproducirlo en pyrthon 
Python :: python comment block 
Python :: venv 
Python :: create square matrix python 
Python :: google text to speech python 
Python :: remove first 3 columns pandas 
Python :: Using Python Permutations function on a String 
Python :: how to retrieve dictionary values in python by index 
Python :: date strftime python 
Python :: python scheduling 
Python :: how to edit messages in discord . py 
Python :: save_img keras 
Python :: pandas apply function to each row lambda 
Python :: sort eigenvalues and eigenvectors python 
Python :: how to add for loop in python 
Python :: drawing arrows in tkinter 
Python :: correlation between images python 
Python :: write json pythonb 
Python :: python get unique pairs from two lists 
Python :: python slicing multi dimensional array 
Python :: python url shortener 
Python :: url settings 
Python :: pandas look for values in column with condition 
Python :: python dataframe row count 
Python :: how to make a resizable python tkinter window have a limit 
Python :: python program to find largest number in a list 
Python :: get the last element from the list 
Python :: how yo import python lib 
ADD CONTENT
Topic
Content
Source link
Name
5+3 =