# numpy 2.5.4 (BSD-3-Clause), harvested by tools/harvest_corpus.py
=== input

    Convert a Legendre series to a polynomial.

    Convert an array representing the coefficients of a Legendre 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 Legendre 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
    --------
    poly2leg

    Notes
    -----
    The easy way to do conversions between polynomial basis sets
    is to use the convert method of a class instance.

    Examples
    --------
    >>> from numpy import polynomial as P
    >>> c = P.Legendre(range(4))
    >>> c
    Legendre([0., 1., 2., 3.], domain=[-1.,  1.], window=[-1.,  1.], symbol='x')
    >>> p = c.convert(kind=P.Polynomial)
    >>> p
    Polynomial([-1. , -3.5,  3. ,  7.5], domain=[-1.,  1.], window=[-1., ...
    >>> P.legendre.leg2poly(range(4))
    array([-1. , -3.5,  3. ,  7.5])


    
=== parse numpydoc
short_description: 'Convert a Legendre series to a polynomial.'
long_description: |
  Convert an array representing the coefficients of a Legendre 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.
blank_after_short_description: True
blank_after_long_description: True
style: numpydoc
- DocstringParam
  description: |
    1-D array containing the Legendre series coefficients, ordered
    from lowest order term to highest.
  kind: param
  key: 'param'
  arg_name: 'c'
  type_name: 'array_like'
  is_optional: False
- DocstringReturns
  description: |
    1-D array containing the coefficients of the equivalent polynomial
    (relative to the "standard" basis) ordered from lowest order term
    to highest.
  kind: returns
  key: 'returns'
  type_name: 'ndarray'
  is_generator: False
  return_name: 'pol'
- DocstringMeta
  description: 'poly2leg'
  kind: text
  key: 'see_also'
  title: 'See Also'
- DocstringMeta
  description: |
    The easy way to do conversions between polynomial basis sets
    is to use the convert method of a class instance.
  kind: text
  key: 'notes'
  title: 'Notes'
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: '>>> from numpy import polynomial as P'
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: '>>> c = P.Legendre(range(4))'
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: |
    >>> c
    Legendre([0., 1., 2., 3.], domain=[-1.,  1.], window=[-1.,  1.], symbol='x')
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: '>>> p = c.convert(kind=P.Polynomial)'
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: |
    >>> p
    Polynomial([-1. , -3.5,  3. ,  7.5], domain=[-1.,  1.], window=[-1., ...
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: |
    >>> P.legendre.leg2poly(range(4))
    array([-1. , -3.5,  3. ,  7.5])
=== detect
numpydoc
=== compose numpydoc
Convert a Legendre series to a polynomial.

Convert an array representing the coefficients of a Legendre 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 Legendre 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
--------
poly2leg

Notes
-----
The easy way to do conversions between polynomial basis sets
is to use the convert method of a class instance.

Examples
--------
>>> from numpy import polynomial as P
>>> c = P.Legendre(range(4))
>>> c
Legendre([0., 1., 2., 3.], domain=[-1.,  1.], window=[-1.,  1.], symbol='x')
>>> p = c.convert(kind=P.Polynomial)
>>> p
Polynomial([-1. , -3.5,  3. ,  7.5], domain=[-1.,  1.], window=[-1., ...
>>> P.legendre.leg2poly(range(4))
array([-1. , -3.5,  3. ,  7.5])
