Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/numpy/polynomial/tests/__pycache__/ |
Upload File : |
o 6��a�= � @ sb d dl Z d dlmZmZmZ d dlmZ d dlm Z m Z d dlmZ d dl mZ G dd� d�ZG dd � d �ZG d d� d�Zdd � Zdd� Ze j�deedd�edd�ged�dfeddedd�ged�dfeed�ed�dged�dff�dd� �Ze j�deg d�ed�d feddddgged�d!ff�d"d#� �ZG d$d%� d%�ZG d&d'� d'�ZG d(d)� d)�ZdS )*� N)�array�arange�printoptions)�assert_equal�assert_)�Fraction)�Decimalc @ �Z e Zd Zejddd�dd� �Zej�dg d�dfg d �d fed�dff�d d� �Z ej�dg d�dfg d �dfed�dff�dd� �Z ej�dg d�dfg d �dfed�dff�dd� �Zej�dg d�dfg d �dfed�dff�dd� �Zej�dg d�dfg d �dfed�d ff�d!d"� �Z ej�dg d�d#fg d �d$fed�d%ff�d&d'� �Zd(S ))�TestStrUnicodeSuperSubscripts�classT��scope�autousec C � t �d� d S �N�unicode��poly�set_default_printstyle��self� r �F/usr/lib/python3/dist-packages/numpy/polynomial/tests/test_printing.py�use_unicode � z)TestStrUnicodeSuperSubscripts.use_unicode��inp�tgt�� � � � 1.0 + 2.0·x¹ + 3.0·x²����r r! r$ u% -1.0 + 0.0·x¹ + 3.0·x² - 1.0·x³� u� 0.0 + 1.0·x¹ + 2.0·x² + 3.0·x³ + 4.0·x⁴ + 5.0·x⁵ + 6.0·x⁶ + 7.0·x⁷ + 8.0·x⁸ + 9.0·x⁹ + 10.0·x¹⁰ + 11.0·x¹¹c C � t t�|��}t||� d S �N��strr � Polynomialr �r r r �resr r r �test_polynomial_str � z1TestStrUnicodeSuperSubscripts.test_polynomial_str�! 1.0 + 2.0·T₁(x) + 3.0·T₂(x)u1 -1.0 + 0.0·T₁(x) + 3.0·T₂(x) - 1.0·T₃(x)u� 0.0 + 1.0·T₁(x) + 2.0·T₂(x) + 3.0·T₃(x) + 4.0·T₄(x) + 5.0·T₅(x) + 6.0·T₆(x) + 7.0·T₇(x) + 8.0·T₈(x) + 9.0·T₉(x) + 10.0·T₁₀(x) + 11.0·T₁₁(x)c C r&