![download numpy for python 3.6 download numpy for python 3.6](https://i.ytimg.com/vi/_GikMdhAhv0/maxresdefault.jpg)
![download numpy for python 3.6 download numpy for python 3.6](https://i.stack.imgur.com/e26DH.png)
# Elementwise division both produce the array Print('Multiply using function: \n', numpy.multiply(x, y)) Print('Multiply using operator: \n', x * y) Print('\nElementwise Multiplication of two matrices: ( X. # Elementwise product both produce the array Print('Subtract using function: \n', numpy.subtract(x, y)) Print('Subtract using operator: \n', x - y) Print('\nElementwise subtraction of two matrices: ( X - Y of Matlab )') # Elementwise difference both produce the array Print('Add using add function: \n', numpy.add(x, y)) Print('Add using add operator: \n', x + y) Print('\nElementwise addition of two matrices: ( X + Y of Matlab )') Y = numpy.array(, ], dtype=numpy.float64) X = numpy.array(, ], dtype=numpy.float64) Print a 3-by-3 constant matrix for value = 6: Print('\nprint a 3-by-3 identity matrix:\n', d) Print('\nprint a 3-by-3 constant matrix for value = 6:\n', c) Print('\nprint a 2-by-2 all one matrix:\n', b) Print('\nprint a 2-by-2 zero matrix:\n', a) Print('print using slicing ', b) # 1st slice for row, 2nd for column Print('print using their index: b= ', b, ' b= ',b) # Create a rank 2 array using nested Python listī = numpy.array(, ])
![download numpy for python 3.6 download numpy for python 3.6](https://wendysstudynotes.files.wordpress.com/2018/05/ml_packageinstallation1.png)
Print('print using slicing : ', a) # slicing can be used also