parameters: (n)
return_statement: return a
docstring: a_k from DLMF 5.11.6
docstring_summary: a_k from DLMF 5.11.6
docstring_tokens: a_k from DLMF 5 . 11 . 6
function: def compute_a(n):
      """a_k from DLMF 5.11.6"""
      a = [mp.sqrt(2)/2]
      for k in range(1, n):
          ak = a[-1]/k
          for j in range(1, len(a)):
              ak -= a[j]*a[-j]/(j + 1)
          ak /= a[0]*(1 + mp.mpf(1)/(k + 1))
          a.append(ak)
      return a
function_tokens: def compute_a ( n ) : a = [ mp . sqrt ( 2 ) / 2 ] for k in range ( 1 , n ) : ak = a [ - 1 ] / k for j in range ( 1 , len ( a ) ) : ak -= a [ j ] * a [ - j ] / ( j + 1 ) ak /= a [ 0 ] * ( 1 + mp . mpf ( 1 ) / ( k + 1 ) ) a . append ( ak ) return a