listing arange arangeex py import numpy as np =np arange( , last element is not included in result print( [ print( shape( , total entries =np arange( , , print to with the spacing of print( [ print( shape( , total entries =np arange( - last element is not included in result self print( [ array multidimensional array can not be created by 'arangealso'arangecan only generate sequences and can not take user-defined data these two problems can be solved by using 'arrayoption as shown in listing listing array arrayex py import numpy as np anp array([ ]print( [ print(np shape( )( , =np array([ ][ ][ ] can be written as follow as wellbut above is more readable =np array([[ ],[ ]]print(np shape( )#( row and column row of array can have different number of elements =np array([[np arange( , )],[np arange( )]]print( ''[[array([ ])[array([ ])]'' matrix similar to arraywe can define matrix using 'matfunction of numpy library as shown in listing alsolu factorization of the matrix is shown in listing using scipy library there are differences in results of mathematical operations on the matrices defined by 'arrayand 'mat'as shown in the listing 'dotfunction is required for matrix multiplication of arraywhereas '*sign performs matrix multiplication for 'matfunction listing matrix matrixex py import numpy as np (continues on next page numpyscipy and matplotlib