numpy 1.22.4 Pypi GitHub Homepage
Other Docs

To remove in the future –– numpy.polynomial.legendre

Legendre Series (:mod:`numpy.polynomial.legendre`)

This module provides a number of objects (mostly functions) useful for dealing with Legendre series, including a Legendre 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/

    Legendre

Constants

.. autosummary:: 
    :toctree:generated/
    legdomain
    legzero
    legone
    legx

Arithmetic

.. autosummary:: 
    :toctree:generated/
    legadd
    legsub
    legmulx
    legmul
    legdiv
    legpow
    legval
    legval2d
    legval3d
    leggrid2d
    leggrid3d

Calculus

.. autosummary:: 
    :toctree:generated/
    legder
    legint

Misc Functions

.. autosummary:: 
    :toctree:generated/
    legfromroots
    legroots
    legvander
    legvander2d
    legvander3d
    leggauss
    legweight
    legcompanion
    legfit
    legtrim
    legline
    leg2poly
    poly2leg

See also

numpy.polynomial

Examples

See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


GitHub : /numpy/polynomial/legendre.py#0
type: <class 'module'>
Commit: