관리-도구
편집 파일: test_chebyshev.cpython-311.pyc
� �܋f*P � � � d Z ddlmZ ddlZddlmc mZ ddl m Z ddlmZm Z mZmZ d� ZdgZddgZg d�Zg d �Zg d �Zg d�Zg d�Zg d �Zg d�Zg d�Zeeeeeeeeeeg Z G d� d� � Z G d� d� � Z G d� d� � Z G d� d� � Z G d� d� � Z G d� d� � Z! G d� d� � Z" G d� d� � Z# G d � d!� � Z$ G d"� d#� � Z% G d$� d%� � Z& G d&� d'� � Z'dS )(zTests for chebyshev module. � )�reduceN��polyval)�assert_almost_equal� assert_raises�assert_equal�assert_c �. � t j | d�� � S )Ng���ư>)�tol)�cheb�chebtrim��xs �x/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/numpy/polynomial/tests/test_chebyshev.py�trimr s � ��=���%�%�%�%� � )���r � )r ���r � )r r i����r � )r � r i��r � )r r � r i���r � )r i����r �8 r i����r �@ ) r r i��r � r i ���r � ) r � r i����r i� r i����r � c � � e Zd Zd� Zd� ZdS )�TestPrivatec � � t d� � D ]{}t j dgdg|z z t j � � }t j dg|z dgz dg|z z t j � � }t j |� � }t ||� � �|d S )Nr r r � �?)�range�np�array�doubler �_cseries_to_zseriesr ��self�i�inp�tgt�ress r �test__cseries_to_zseriesz$TestPrivate.test__cseries_to_zseries! s� � ��q��� #� #�A��(�A�3�!��Q��;�� �2�2�C��(�B�4��6�Q�C�<�2�$�q�&�0�"�)�<�<�C��*�3�/�/�C���c�"�"�"�"� #� #r c � � t d� � D ]{}t j dg|z dgz dg|z z t j � � }t j dgdg|z z t j � � }t j |� � }t ||� � �|d S )Nr r&