관리-도구
편집 파일: test_polynomial.cpython-37.pyc
B ��Fd � @ sj d dl mZmZmZ d dlZd dlmZmZm Z m Z mZmZm Z mZmZ G dd� de�Zedkrfe� dS )� )�division�absolute_import�print_functionN) �run_module_suite�TestCase�assert_�assert_equal�assert_array_equal�assert_almost_equal�assert_array_almost_equal� assert_raises�rundocsc @ sl e Zd Zdd� Zdd� Zdd� Zdd� Zd d � Zdd� Zd d� Z dd� Z dd� Zdd� Zdd� Z dd� ZdS )�TestDocsc C s t � S )N)r )�self� r ��/builddir/build/BUILDROOT/alt-python37-numpy-1.13.3-8.el8.x86_64/opt/alt/python37/lib64/python3.7/site-packages/numpy/lib/tests/test_polynomial.py� test_doctestsY s zTestDocs.test_doctestsc C s� t t�dt�d� t�d�g�ddddg� dddgdddgd d dgg}t t�|�ddd dg� tt�t�ddddg��� tt�t�ddddddg��� tt�t�ddddddg��� tt�t�ddddg��� tt�t�ddddg��� tt�t�ddg��� tt�t�ddg��� tt�t�ddg��� tj�d � tj� d!�dtj� d!� }tt�t�t� |t�|�f���� d S )"N� � � ������� � � � � r i����i����i��y Zd;�O�?y ��C�l�@y ���C�l��y �Zd;�O�y �?y �y �? @y �? �y �? @y �? �y � �y �? @y �? �y @y � ����y ���� ��* �d )r �np�poly�sqrtr � isrealobj�iscomplexobj�random�seed�randn�concatenate� conjugate)r �A�ar r r � test_poly\ s zTestDocs.test_polyc C s t t�dddg�ddg� d S )Nr r )r r �roots)r r r r � test_rootst s zTestDocs.test_rootsc C sX t �ddddg�}d|d<