File: //usr/local/lib/python3.10/dist-packages/numpy/polynomial/__pycache__/_polybase.cpython-310.pyc
o
���gg� � @ sL d Z ddlZddlZddlZddlZddlmZ dgZ G dd� dej
�ZdS )a
Abstract base class for the various polynomial Classes.
The ABCPolyBase class provides the methods needed to implement the common API
for the various polynomial classes. It operates as a mixin, but uses the
abc module from the stdlib, hence it is only available for Python >= 2.6.
� N� )� polyutils�ABCPolyBasec
@ s� e Zd ZdZdZdZdZe�dddddd d
ddd
d�
�Z e�ddddddddddd�
�Z
ejdk Z
edd� �Zeejdd� ��Zeejdd� ��Zeejd d!� ��Zeejd"d#� ��Zeejd$d%� ��Zeejd&d'� ��Zeejd(d)� ��Zeejd�d*d+���Zeejd,d-� ��Zeejd.d/� ��Zeejd0d1� ��Zeejd2d3� ��Zeejd4d5� ��Zeejd6d7� ��Z eejd8d9� ��Z!d:d;� Z"d<d=� Z#d>d?� Z$d@dA� Z%dBdC� Z&d�dEdF�Z'dGdH� Z(dIdJ� Z)dKdL� Z*dMdN� Z+e,dOdP� �Z-e,dQdR� �Z.e,dSdT� �Z/ed�dVdW��Z0dXdY� Z1dZd[� Z2d\d]� Z3d^d_� Z4d`da� Z5dbdc� Z6ddde� Z7dfdg� Z8dhdi� Z9djdk� Z:dldm� Z;dndo� Z<dpdq� Z=drds� Z>dtdu� Z?dvdw� Z@dxdy� ZAdzd{� ZBd|d}� ZCd~d� ZDd�d�� ZEd�d�� ZFd�d�� ZGd�d�� ZHd�d�� ZId�d�� ZJd�d�� ZKd�d�� ZLd�d�� ZMd�d�d��ZNd�d�� ZOd�d�d��ZPd�d�� ZQd�g dfd�d��ZRd�d�d��ZSd�d�� ZTd�d�d��ZUe, Dd�d�d���ZVe,g ddDfd�d���ZWe,d�d�d���ZXe,d�d�d���ZYe,d�d�d���ZZdS )�r a An abstract base class for immutable series classes.
ABCPolyBase provides the standard Python numerical methods
'+', '-', '*', '//', '%', 'divmod', '**', and '()' along with the
methods listed below.
.. versionadded:: 1.9.0
Parameters
----------
coef : array_like
Series coefficients in order of increasing degree, i.e.,
``(1, 2, 3)`` gives ``1*P_0(x) + 2*P_1(x) + 3*P_2(x)``, where
``P_i`` is the basis polynomials of degree ``i``.
domain : (2,) array_like, optional
Domain to use. The interval ``[domain[0], domain[1]]`` is mapped
to the interval ``[window[0], window[1]]`` by shifting and scaling.
The default value is the derived class domain.
window : (2,) array_like, optional
Window, see domain for its use. The default value is the
derived class window.
symbol : str, optional
Symbol used to represent the independent variable in string
representations of the polynomial expression, e.g. for printing.
The symbol must be a valid Python identifier. Default value is 'x'.
.. versionadded:: 1.24
Attributes
----------
coef : (N,) ndarray
Series coefficients in order of increasing degree.
domain : (2,) ndarray
Domain that is mapped to window.
window : (2,) ndarray
Window that domain is mapped to.
symbol : str
Symbol representing the independent variable.
Class Attributes
----------------
maxpower : int
Maximum power allowed, i.e., the largest number ``n`` such that
``p(x)**n`` is allowed. This is to limit runaway polynomial size.
domain : (2,) ndarray
Default domain of the class.
window : (2,) ndarray
Default window of the class.
N�d u ⁰� ¹� ²� ³u ⁴u ⁵u ⁶u ⁷u ⁸u ⁹)
�0�1�2�3�4�5�6�7�8�9u ₀u ₁u ₂u ₃u ₄u ₅u ₆u ₇u ₈u ₉�ntc C s | j S �N)�_symbol��self� r �E/usr/local/lib/python3.10/dist-packages/numpy/polynomial/_polybase.py�symboln s zABCPolyBase.symbolc C � d S r r r r r r �domainr � zABCPolyBase.domainc C r r r r r r r �windoww r zABCPolyBase.windowc C r r r r r r r �
basis_name| r zABCPolyBase.basis_namec C r r r ��c1�c2r r r �_add� r zABCPolyBase._addc C r r r r r r r �_sub� r zABCPolyBase._subc C r r r r r r r �_mul� r zABCPolyBase._mulc C r r r r r r r �_div� r zABCPolyBase._divc C r r r )�c�pow�maxpowerr r r �_pow� r zABCPolyBase._powc C r r r )�xr'