Polynomials
===========

.. Hint:: `NumPy API Reference: Polynomials <https://numpy.org/doc/stable/reference/routines.polynomials.html>`_

Power Series (:mod:`cupy.polynomial.polynomial`)
------------------------------------------------

.. Hint:: `NumPy API Reference: Power Series (numpy.polynomial.polynomial) <https://numpy.org/doc/stable/reference/routines.polynomials.polynomial.html>`_

Misc Functions
~~~~~~~~~~~~~~

.. module:: cupy.polynomial.polynomial
.. autosummary::
   :toctree: generated/

   polyvander
   polycompanion


Polyutils
---------

.. Hint:: `NumPy API Reference: Polyutils <https://numpy.org/doc/stable/reference/routines.polynomials.polyutils.html>`_

Functions
~~~~~~~~~

.. module:: cupy.polynomial.polyutils
.. autosummary::
   :toctree: generated/

   as_series
   trimseq
   trimcoef


Poly1d
------

.. Hint:: `NumPy API Reference: Poly1d <https://numpy.org/doc/stable/reference/routines.polynomials.poly1d.html>`_

.. currentmodule:: cupy

Basics
~~~~~~

.. autosummary::
   :toctree: generated/

   poly1d
   cupy.poly
   polyval
   roots


Fitting
~~~~~~~

.. autosummary::
   :toctree: generated/

   polyfit


Arithmetic
~~~~~~~~~~

.. autosummary::
   :toctree: generated/

   polyadd
   polysub
   polymul
