def _calc_factlist(nn):
 if (nn >= len(_Factlist)):
  for ii in range(len(_Factlist), int((nn + 1))):
   _Factlist.append((_Factlist[(ii - 1)] * ii))
 return _Factlist[:(int(nn) + 1)]

def _calc_factlist ( nn ) : if ( nn >= len ( _Factlist ) ) : for ii in range ( len ( _Factlist ) , int ( ( nn + 1 ) ) ) : _Factlist . append ( ( _Factlist [ ( ii - 1 ) ] * ii ) ) return _Factlist [ : ( int ( nn ) + 1 ) ]
function calculates a list of precomputed factorials in order to massively accelerate future calculations of the various coefficients .