def _compose_linear_fitting_data(mu, u):
 for k in range((u['nterms'] - 1)):
  k1 = (k + 1)
  mu1n = np.power(mu[0], k1)
  u['y'][k] = (u['w'][k] * (u['fn'][k1] - (mu1n * u['fn'][0])))
  for p in range((u['nfit'] - 1)):
   u['M'][k][p] = (u['w'][k] * (np.power(mu[(p + 1)], k1) - mu1n))

def _compose_linear_fitting_data ( mu , u ) : for k in range ( ( u [ 'nterms' ] - 1 ) ) : k1 = ( k + 1 ) mu1n = np . power ( mu [ 0 ] , k1 ) u [ 'y' ] [ k ] = ( u [ 'w' ] [ k ] * ( u [ 'fn' ] [ k1 ] - ( mu1n * u [ 'fn' ] [ 0 ] ) ) ) for p in range ( ( u [ 'nfit' ] - 1 ) ) : u [ 'M' ] [ k ] [ p ] = ( u [ 'w' ] [ k ] * ( np . power ( mu [ ( p + 1 ) ] , k1 ) - mu1n ) )
get the linear fitting data .