def orth(x_in, y_in):
 x = np.array(x_in)[:, None]
 y = np.array(y_in)[:, None]
 y = (y - np.dot(x, np.dot(np.linalg.inv(np.dot(x.T, x)), np.dot(x.T, y))))
 if (np.linalg.norm(y, 1) > np.exp((-32))):
  y = y[:, 0].tolist()
 else:
  y = y_in
 return y

def orth ( x_in , y_in ) : x = np . array ( x_in ) [ : , None ] y = np . array ( y_in ) [ : , None ] y = ( y - np . dot ( x , np . dot ( np . linalg . inv ( np . dot ( x . T , x ) ) , np . dot ( x . T , y ) ) ) ) if ( np . linalg . norm ( y , 1 ) > np . exp ( ( - 32 ) ) ) : y = y [ : , 0 ] . tolist ( ) else : y = y_in return y
orthoganlize y_in with respect to x_in .