| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python312/Lib/site-packages/numpy/polynomial/__pycache__/ |
Upload File : |
�
�g&� � � � d Z ddlZddlmZ ddlmZ ddlm Z
ddlmZ g d�Z
e
j Zd� Zd � Z ej$ d
dg� Z ej$ dg� Z ej$ dg� Z ej$ ddg� Zd
� Zd� Zd� Zd� Zd� Zd� Zd� Zd&d�Zd'd�Zdg dddfd�Z d(d�Z!d� Z"d� Z#d� Z$d� Z%d� Z&d� Z'd� Z(d)d�Z)d � Z*d!� Z+d"� Z,d#� Z- G d$� d%e� Z.y)*a�
==================================================
Laguerre Series (:mod:`numpy.polynomial.laguerre`)
==================================================
This module provides a number of objects (mostly functions) useful for
dealing with Laguerre series, including a `Laguerre` class that
encapsulates the usual arithmetic operations. (General information
on how this module represents and works with such polynomials is in the
docstring for its "parent" sub-package, `numpy.polynomial`).
Classes
-------
.. autosummary::
:toctree: generated/
Laguerre
Constants
---------
.. autosummary::
:toctree: generated/
lagdomain
lagzero
lagone
lagx
Arithmetic
----------
.. autosummary::
:toctree: generated/
lagadd
lagsub
lagmulx
lagmul
lagdiv
lagpow
lagval
lagval2d
lagval3d
laggrid2d
laggrid3d
Calculus
--------
.. autosummary::
:toctree: generated/
lagder
lagint
Misc Functions
--------------
.. autosummary::
:toctree: generated/
lagfromroots
lagroots
lagvander
lagvander2d
lagvander3d
laggauss
lagweight
lagcompanion
lagfit
lagtrim
lagline
lag2poly
poly2lag
See also
--------
`numpy.polynomial`
� N)�normalize_axis_index� )� polyutils)�ABCPolyBase)�lagzero�lagone�lagx� lagdomain�lagline�lagadd�lagsub�lagmulx�lagmul�lagdiv�lagpow�lagval�lagder�lagint�lag2poly�poly2lag�lagfromroots� lagvander�lagfit�lagtrim�lagroots�Laguerre�lagval2d�lagval3d� laggrid2d� laggrid3d�lagvander2d�lagvander3d�lagcompanion�laggauss� lagweightc �~ � t j | g� \ } d}| ddd� D ] }t t |� |� }� |S )a�
poly2lag(pol)
Convert a polynomial to a Laguerre series.
Convert an array representing the coefficients of a polynomial (relative
to the "standard" basis) ordered from lowest degree to highest, to an
array of the coefficients of the equivalent Laguerre series, ordered
from lowest to highest degree.
Parameters
----------
pol : array_like
1-D array containing the polynomial coefficients
Returns
-------
c : ndarray
1-D array containing the coefficients of the equivalent Laguerre
series.
See Also
--------
lag2poly
Notes
-----
The easy way to do conversions between polynomial basis sets
is to use the convert method of a class instance.
Examples
--------
>>> import numpy as np
>>> from numpy.polynomial.laguerre import poly2lag
>>> poly2lag(np.arange(4))
array([ 23., -63., 58., -18.])
r N���)�pu� as_seriesr r )�pol�res�ps �;C:\Python312\Lib\site-packages\numpy/polynomial/laguerre.pyr r ` sH � �N
�L�L�#���E�S�
�C�
��2��Y� &���W�S�\�1�%��&��J� c
�L � ddl m}m}m} t j
| g� \ } t
| � }|dk( r| S | d }| d }t |dz
dd� D ]>