parameters: (x,xg)
return_statement: return N
docstring: This computes the shape functions on 2D line
  
      Keyword arguments:
      x -- Definition of line
      xg -- Gauss point
docstring_summary: This computes the shape functions on 2D line
docstring_tokens: This computes the shape functions on 2D line
function: def GetShapeFunctionDefinitionLine2D2N(x,xg):
      """ This computes the shape functions on 2D line
  
      Keyword arguments:
      x -- Definition of line
      xg -- Gauss point
      """
      N = sympy.zeros(2)
      N[0] = (-x[1,0]+ xg[0]-x[1,1]+xg[1]) / (x[0,0] - x[1,0] + x[0,1] - x[1,1])
      N[1] = 1-N[0]
  
      return N
function_tokens: def GetShapeFunctionDefinitionLine2D2N ( x , xg ) : N = sympy . zeros ( 2 ) N [ 0 ] = ( - x [ 1 , 0 ] + xg [ 0 ] - x [ 1 , 1 ] + xg [ 1 ] ) / ( x [ 0 , 0 ] - x [ 1 , 0 ] + x [ 0 , 1 ] - x [ 1 , 1 ] ) N [ 1 ] = 1 - N [ 0 ] return N