§ <ˆj"Í ã ó° — 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-d&„ Z. G d'„ d(e¦ « Z/dS )-aý ============================================================== Hermite Series, "Physicists" (:mod:`numpy.polynomial.hermite`) ============================================================== This module provides a number of objects (mostly functions) useful for dealing with Hermite series, including a `Hermite` 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/ Hermite Constants --------- .. autosummary:: :toctree: generated/ hermdomain hermzero hermone hermx Arithmetic ---------- .. autosummary:: :toctree: generated/ hermadd hermsub hermmulx hermmul hermdiv hermpow hermval hermval2d hermval3d hermgrid2d hermgrid3d Calculus -------- .. autosummary:: :toctree: generated/ hermder hermint Misc Functions -------------- .. autosummary:: :toctree: generated/ hermfromroots hermroots hermvander hermvander2d hermvander3d hermgauss hermweight hermcompanion hermfit hermtrim hermline herm2poly poly2herm See also -------- `numpy.polynomial` é N)Únormalize_axis_indexé )Ú polyutils)ÚABCPolyBase)ÚhermzeroÚhermoneÚhermxÚ hermdomainÚhermlineÚhermaddÚhermsubÚhermmulxÚhermmulÚhermdivÚhermpowÚhermvalÚhermderÚhermintÚ herm2polyÚ poly2hermÚ hermfromrootsÚ hermvanderÚhermfitÚhermtrimÚ hermrootsÚHermiteÚ hermval2dÚ hermval3dÚ hermgrid2dÚ hermgrid3dÚhermvander2dÚhermvander3dÚ hermcompanionÚ hermgaussÚ hermweightc óÊ — t j | g¦ « \ } t | ¦ « dz }d}t |dd¦ « D ]%}t t |¦ « | | ¦ « }Œ&|S )a‹ poly2herm(pol) Convert a polynomial to a Hermite 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 Hermite 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 Hermite series. See Also -------- herm2poly 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 import poly2herm >>> poly2herm(np.arange(4)) array([1. , 2.75 , 0.5 , 0.375]) r r éÿÿÿÿ)ÚpuÚ as_seriesÚlenÚranger r )ÚpolÚdegÚresÚis úO/opt/cloudlinux/venv/lib64/python3.11/site-packages/numpy/polynomial/hermite.pyr r ` sg € õL ŒL˜#˜ÑÔ�E€SÝ ˆc‰(Œ(�Q‰,€CØ €CÝ �3˜˜BÑ Ô ð -ð -ˆÝ•h˜s‘m”m S¨¤VÑ,Ô,ˆˆØ€Jó c ó� — ddl m}m}m} t j | g¦ « \ } t | ¦ « }|dk r| S |dk r| dxx dz cc<