parameters: (c)
docstring: Convert a Hermite series to a polynomial.
  
      Convert an array representing the coefficients of a Hermite series,
      ordered from lowest degree to highest, to an array of the coefficients
      of the equivalent polynomial (relative to the "standard" basis) ordered
      from lowest to highest degree.
  
      Parameters
      ----------
      c : array_like
          1-D array containing the Hermite series coefficients, ordered
          from lowest order term to highest.
  
      Returns
      -------
      pol : ndarray
          1-D array containing the coefficients of the equivalent polynomial
          (relative to the "standard" basis) ordered from lowest order term
          to highest.
  
      See Also
      --------
      poly2herme
  
      Notes
      -----
      The easy way to do conversions between polynomial basis sets
      is to use the convert method of a class instance.
  
      Examples
      --------
      >>> from numpy.polynomial.hermite_e import herme2poly
      >>> herme2poly([  2.,  10.,   2.,   3.])
      array([0.,  1.,  2.,  3.])
docstring_summary: Convert a Hermite series to a polynomial.
docstring_tokens: Convert a Hermite series to a polynomial .
function: def herme2poly(c):
      """
      Convert a Hermite series to a polynomial.
  
      Convert an array representing the coefficients of a Hermite series,
      ordered from lowest degree to highest, to an array of the coefficients
      of the equivalent polynomial (relative to the "standard" basis) ordered
      from lowest to highest degree.
  
      Parameters
      ----------
      c : array_like
          1-D array containing the Hermite series coefficients, ordered
          from lowest order term to highest.
  
      Returns
      -------
      pol : ndarray
          1-D array containing the coefficients of the equivalent polynomial
          (relative to the "standard" basis) ordered from lowest order term
          to highest.
  
      See Also
      --------
      poly2herme
  
      Notes
      -----
      The easy way to do conversions between polynomial basis sets
      is to use the convert method of a class instance.
  
      Examples
      --------
      >>> from numpy.polynomial.hermite_e import herme2poly
      >>> herme2poly([  2.,  10.,   2.,   3.])
      array([0.,  1.,  2.,  3.])
  
      """
      from .polynomial import polyadd, polysub, polymulx
  
      [c] = pu.as_series([c])
      n = len(c)
      if n == 1:
          return c
      if n == 2:
          return c
      else:
          c0 = c[-2]
          c1 = c[-1]
          # i is the current degree of c1
          for i in range(n - 1, 1, -1):
              tmp = c0
              c0 = polysub(c[i - 2], c1*(i - 1))
              c1 = polyadd(tmp, polymulx(c1))
          return polyadd(c0, polymulx(c1))
function_tokens: def herme2poly ( c ) : from . polynomial import polyadd , polysub , polymulx [ c ] = pu . as_series ( [ c ] ) n = len ( c ) if n == 1 : return c if n == 2 : return c else : c0 = c [ - 2 ] c1 = c [ - 1 ] # i is the current degree of c1 for i in range ( n - 1 , 1 , - 1 ) : tmp = c0 c0 = polysub ( c [ i - 2 ] , c1 * ( i - 1 ) ) c1 = polyadd ( tmp , polymulx ( c1 ) ) return polyadd ( c0 , polymulx ( c1 ) )