관리-도구
편집 파일: test_chebyshev.cpython-37.pyc
B ��FdOL � @ s� d Z ddlmZmZmZ ddlZddlm m Z ddlmZ ddl mZmZmZmZmZmZ dd� ZdgZddgZd dd gZddddgZddd ddgZddddddgZd ddddddgZddddddddgZdddddddddg Zdddddddd dd!g Zeeeeeeeeeeg ZG d"d#� d#e�Z G d$d%� d%e�Z!G d&d'� d'e�Z"G d(d)� d)e�Z#G d*d+� d+e�Z$G d,d-� d-e�Z%G d.d/� d/e�Z&G d0d1� d1e�Z'G d2d3� d3e�Z(G d4d5� d5e�Z)G d6d7� d7e�Z*e+d8k�r�e� dS )9zTests for chebyshev module. � )�division�absolute_import�print_functionN)�polyval)�TestCase�assert_almost_equal� assert_raises�assert_equal�assert_�run_module_suitec C s t j| dd�S )Ng���ư>)�tol)�cheb�chebtrim)�x� r ��/builddir/build/BUILDROOT/alt-python37-numpy-1.13.3-8.el8.x86_64/opt/alt/python37/lib64/python3.7/site-packages/numpy/polynomial/tests/test_chebyshev.py�trim s r � ���� ���� i����� � i��� � i���� i�����8 i�����@ i��� i ���� � i����i� i����� c @ s e Zd Zdd� Zdd� ZdS )�TestPrivatec C sh xbt d�D ]V}t�dgdg| tj�}t�dg| dg dg| tj�}t�|�}t||� q W d S )Nr r r g �?)�range�np�array�doubler �_cseries_to_zseriesr )�self�i�inp�tgt�resr r r �test__cseries_to_zseries! s $ z$TestPrivate.test__cseries_to_zseriesc C sh xbt d�D ]V}t�dg| dg dg| tj�}t�dgdg| tj�}t�|�}t||� q W d S )Nr g �?r r )r$ r% r&