-
-
Save IndhumathyChelliah/629cf1b480619934d0b78095258228c7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
a=np.zeros_like([1+1j,2+2j]) | |
print (a)#Output:[0.+0.j 0.+0.j] | |
a1=np.zeros_like([1,2]) | |
print (a1)#Output:[0 0] | |
a2=np.zeros_like([1.,2.]) | |
print (a2)#Output:[0. 0.] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment