403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.217.85
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1074145052 ( 1074145052)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/numpy/polynomial/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/numpy/polynomial/tests/__pycache__/test_symbol.cpython-311.pyc
�

���c���x�dZddlZddlmZddlmZddlmZm	Z	m
Z
Gd�d��ZGd�d��Zej
�d	ejgd
�d���egd
���f��Gd
�d����ZGd�d��ZGd�d��ZGd�d��Zd�Zd�Zd�Zd�Zd�ZdS)zE
Tests related to the ``symbol`` attribute of the ABCPolyBase class.
�N)�array)�assert_equal�
assert_raises�assert_c���eZdZdZgd�Zd�Zej�dde	fde	fde
fde
ff��d	���Zej�d
d��d���Zd
�Z
d�ZdS)�TestInitz5
    Test polynomial creation with symbol kwarg.
    ����c�b�tj|j��}t|jd��dS)N�x��poly�
Polynomial�cr�symbol��self�ps  �D/usr/lib/python3/dist-packages/numpy/polynomial/tests/test_symbol.py�test_default_symbolzTestInit.test_default_symbols+���O�D�F�#�#���Q�X�s�#�#�#�#�#�)�	bad_input�	exception��3Nr
c��tj|��5tj|j|���}ddd��dS#1swxYwYdS)N�r)�pytest�raisesrrr)rrrrs    r�test_symbol_bad_inputzTestInit.test_symbol_bad_inputs����]�9�
%�
%�	:�	:�����y�9�9�9�A�	:�	:�	:�	:�	:�	:�	:�	:�	:�	:�	:�	:����	:�	:�	:�	:�	:�	:s�>�A�Ar)r�x_1�A�xyzuβc�f�tj|j|���}t|j|��dS)zF
        Values for symbol that should pass input validation.
        rNr)rrrs   r�test_valid_symbolszTestInit.test_valid_symbolss2��
�O�D�F�6�2�2�2���Q�X�v�&�&�&�&�&rc��tj|jd���}tjt
��5d|_ddd��dS#1swxYwYdS)z2
        'symbol' attribute is read only.
        rr�zN)rrrr r!�AttributeErrorrrs  r�
test_propertyzTestInit.test_property-s���
�O�D�F�3�/�/�/��
�]�>�
*�
*�	�	��A�H�	�	�	�	�	�	�	�	�	�	�	�	����	�	�	�	�	�	s�A
�
A�Ac��tj|jd���}tj|jd���}t	|jd��dS)N�yr�t)rrr�coefrr)rr�pts   r�test_change_symbolzTestInit.test_change_symbol5sF���O�D�F�3�/�/�/��
�_�Q�V�C�
0�
0�
0���R�Y��$�$�$�$�$r)�__name__�
__module__�__qualname__�__doc__rrr �mark�parametrize�
ValueError�	TypeErrorr"r'r+r1�rrrrs���������	�	�	�A�$�$�$��[���7�	�Z��	�j��	
�y��	
�I��	:���:�:�
��:��[���X�(���'�'���'����%�%�%�%�%rrc�N�eZdZejgd�d���Zd�Zd�Zd�Zd�Z	dS)	�TestUnaryOperatorsr	r)rc�@�|j}t|jd��dS�Nr)�rrr)r�ns  r�test_negzTestUnaryOperators.test_neg?s#��
�V�G���Q�X�s�#�#�#�#�#rc�D�|jdz}t|jd��dS�N�
r)r?�r�outs  r�test_scalarmulz!TestUnaryOperators.test_scalarmulCs%���f�r�k���S�Z��%�%�%�%�%rc�D�d|jz}t|jd��dSrCr?rEs  r�test_rscalarmulz"TestUnaryOperators.test_rscalarmulGs%���4�6�k���S�Z��%�%�%�%�%rc�D�|jdz}t|jd��dS)Nrr)r?rEs  r�test_powzTestUnaryOperators.test_powKs%���f��k���S�Z��%�%�%�%�%rN)
r2r3r4rrrrArGrIrKr:rrr<r<<sj���������	�	�	�#�.�.�.�A�$�$�$�&�&�&�&�&�&�&�&�&�&�&rr<�rhs����r)rc�j�eZdZdZejgd�d���Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
S)�TestBinaryOperatorsSameSymbolzc
    Ensure symbol is preserved for numeric operations on polynomials with
    the same symbol
    r	r)rc�D�|j|z}t|jd��dSr>r?�rrLrFs   r�test_addz&TestBinaryOperatorsSameSymbol.test_add^�%���f�s�l���S�Z��%�%�%�%�%rc�D�|j|z
}t|jd��dSr>r?rTs   r�test_subz&TestBinaryOperatorsSameSymbol.test_subbrVrc�D�|j|z}t|jd��dSr>r?rTs   r�test_polymulz*TestBinaryOperatorsSameSymbol.test_polymulfrVrc�`�t|j|��D]}t|jd���dSr>��divmodrrrrTs   r�test_divmodz)TestBinaryOperatorsSameSymbol.test_divmodjs<���$�&�#�&�&�	*�	*�C����S�)�)�)�)�	*�	*rc�D�||jz}t|jd��dSr>r?rTs   r�	test_raddz'TestBinaryOperatorsSameSymbol.test_raddn�%���D�F�l���S�Z��%�%�%�%�%rc�D�||jz
}t|jd��dSr>r?rTs   r�	test_rsubz'TestBinaryOperatorsSameSymbol.test_rsubrrarc�D�||jz}t|jd��dSr>r?rTs   r�	test_rmulz'TestBinaryOperatorsSameSymbol.test_rmulvrarc�`�t||j��D]}t|jd���dSr>r\rTs   r�test_rdivmodz*TestBinaryOperatorsSameSymbol.test_rdivmodzs<���#�t�v�&�&�	*�	*�C����S�)�)�)�)�	*�	*rN)r2r3r4r5rrrrUrXrZr^r`rcrergr:rrrRrRPs���������	���	�	�	�#�.�.�.�A�&�&�&�&�&�&�&�&�&�*�*�*�&�&�&�&�&�&�&�&�&�*�*�*�*�*rrRc���eZdZejgd�d���Zejgd�d���Zejejej	ej
ejfZe
j�de��d���ZdS)	�"TestBinaryOperatorsDifferentSymbolr	rrrMr-�fc�<�tt||j��dS)N)rr8�other)rrjs  r�test_binops_failsz4TestBinaryOperatorsDifferentSymbol.test_binops_fails�s���j�!�T�Z�0�0�0�0�0rN)r2r3r4rrrrl�__add__�__sub__�__mul__�__floordiv__�__mod__�opsr r6r7rmr:rrriris����������	�	�	�#�.�.�.�A��D�O�I�I�I�c�2�2�2�E��9�a�i���A�N�A�I�
F�C��[���S�#�&�&�1�1�'�&�1�1�1rric�B�eZdZejgd�d���Zd�Zd�ZdS)�TestEqualityr	rrc�f�tjgd�d���}t|j|k��dS)Nr	rr�rrrr�rrls  r�test_eqzTestEquality.test_eq�s4����	�	�	�#�6�6�6�����%�� � � � � rc�h�tjgd�d���}t|j|k��dS)Nr	r-rrwrxs  r�test_neqzTestEquality.test_neq�s7����	�	�	�#�6�6�6���D�F�e�O�#�$�$�$�$�$rN)r2r3r4rrrryr{r:rrruru�sL���������	�	�	�#�.�.�.�A�!�!�!�%�%�%�%�%rruc���eZdZdZejgd�d���Zd�Zd�Zd�Z	e
j�dd	d
dgidd
dgid
ej
if��d���Zd�Zd�ZdS)�TestExtraMethodszJ
    Test other methods for manipulating/creating polynomial objects.
    )r
rrrr)rc�b�|j���}t|jd��dSr>)r�copyrrrxs  r�	test_copyzTestExtraMethods.test_copy��)������
�
���U�\�3�'�'�'�'�'rc�b�|j���}t|jd��dSr>)r�trimrrrxs  r�	test_trimzTestExtraMethods.test_trim�r�rc�d�|j�d��}t|jd��dS)Nrr))r�truncaterrrxs  r�
test_truncatezTestExtraMethods.test_truncate�s-�������"�"���U�\�3�'�'�'�'�'r�kwarg�domaini����rD�window�kindc�T�|jjdi|��}t|jd��dS)Nr)r:)r�convertrr)rr�rls   r�test_convertzTestExtraMethods.test_convert�s5������'�'��'�'���U�\�3�'�'�'�'�'rc�b�|j���}t|jd��dSr>)r�integrrrxs  r�
test_integzTestExtraMethods.test_integ��)����������U�\�3�'�'�'�'�'rc�b�|j���}t|jd��dSr>)r�derivrrrxs  r�
test_derivzTestExtraMethods.test_deriv�r�rN)r2r3r4r5rrrr�r�r�r r6r7�	Chebyshevr�r�r�r:rrr}r}�s���������	������S�1�1�1�A�(�(�(�(�(�(�(�(�(��[���W�	�C��9��	�C��9��	��� �'���
(�(���
(�(�(�(�(�(�(�(�(rr}c��tjgd�d���}tjgd�d���}||��}|jdksJ�dS)N)rrr
r.r)rOr
r���uλ_1)rrr)r�q�rs   r�test_compositionr��sX����	�	�	�#�.�.�.�A���
�
�
�f�5�5�5�A�	��!���A��8�v������rc��td��fdz\}}tj�||dd���}t	|jd��dS)NrDrr
r))�degr)�rangerr�fitrr)rr-rs   r�test_fitr��sM���"�I�I�<��>�D�A�q�����A�q�a���4�4�A����3�����rc�z�ddg}tj�|d���}t|jd��dS)N���rr)r)rr�	fromrootsrr)�rootsrs  r�test_froomrootsr��s=��
��G�E���!�!�%��!�4�4�A����3�����rc�|�tj�ddgddgd���}t|jd��dS)Nr�r
rO�r))r�r�r)rr�identityrr�rs r�
test_identityr��s>���� � ��Q���B��� �L�L�A����3�����rc�r�tj�dd���}t|jd��dS)Nrr)r)rr�basisrrr�s r�
test_basisr��s4������a���,�,�A����3�����r)r5r �numpy.polynomial�
polynomialr�
numpy.corer�
numpy.testingrrrrr<r6r7rrRrirur}r�r�r�r�r�r:rr�<module>r�s������
�
�
�������������>�>�>�>�>�>�>�>�>�>�.%�.%�.%�.%�.%�.%�.%�.%�b&�&�&�&�&�&�&�&�(����	����	�	�	�#�.�.�.�
��i�i�i������%*�%*�%*�%*�%*�%*�%*���%*�P1�1�1�1�1�1�1�1�	%�	%�	%�	%�	%�	%�	%�	%�!(�!(�!(�!(�!(�!(�!(�!(�H��� � � � � � � � � �
 � � � � r

Youez - 2016 - github.com/yon3zu
LinuXploit