import numpy as np # This imports a package called "numpy" that will make working with matrices # simpler # create a two-dimensional matrix with only one column. x = np.matrix( '1.;2.;3.' ) print( 'x = ' ) print( x ) import laff import math length_x = math.sqrt( laff.dot( x, x ) ) print( 'length_x:' ) print( length_x ) def length( x ): #Your code here length_x = length( x ) print( 'length_x:' ) print( length_x ) print( 'difference between length_x and math.sqrt( laff.dot( x, x ) ):' ) print( length_x - math.sqrt( laff.dot( x, x ) ) ) import laff length_x = laff.norm2( x ) print( 'length_x:' ) print( length_x ) print( 'difference between length_x and math.sqrt( laff.dot( x, x ) ):' ) print( length_x - math.sqrt( laff.dot( x, x ) ) ) def length( x ): ### You fill in the rest!