관리-도구
편집 파일: test_classes.cpython-311.pyc
� �܋f�G � �� � d Z ddlZddlmZ ddlZddlZddlm Z m Z mZmZm Z mZ ddlmZmZmZmZ ddlmZ e e eee efZ ed� eD � � � � Z ej ee�� � d � � � Zej j Zd+d�ZeZeZd� Zd � Z d� Z!d� Z"d� Z#d� Z$d� Z%d� Z&d� Z'd� Z(d� Z)d� Z*d� Z+d� Z,d� Z-d� Z.d� Z/d� Z0d� Z1d� Z2d � Z3d!� Z4d"� Z5d#� Z6d$� Z7d%� Z8d&� Z9d'� Z:d(� Z; G d)� d*� � Z<dS ),z�Test inter-conversion of different polynomial classes. This tests the convert and cast methods of all the polynomial classes. � N)�Number)� Polynomial�Legendre� Chebyshev�Laguerre�Hermite�HermiteE)�assert_almost_equal� assert_raises�assert_equal�assert_)�RankWarningc # �$ K � | ]}|j V � �d S �N)�__name__)�.0�clss �v/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/numpy/polynomial/tests/test_classes.py� <genexpr>r s$ � � � �1�1�#���1�1�1�1�1�1� )�params�idsc � � | j S r )�param)�requests r �Polyr s � ��=�r � c �B � t t j | j |j k � � � � t t j | j |j k � � � � t | j |j � � d S # t $ r d| � d|� �}t |� � �w xY w)NzResult: z Target: )r �np�all�domain�windowr �coef�AssertionError)�p1�p2�msgs r �assert_poly_almost_equalr( &