PATH:
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
numpy
/
core
/
tests
/
__pycache__
/
Editing: test_umath_complex.cpython-311.pyc
� � h�Z � � � d dl Z d dlZd dlZd dlZd dlmc mZ d dl m Z mZmZm Z mZ ej d�� � 5 ej eej d � � � � j d k p, ej eej d � � � � j ej k Zddd� � n# 1 swxY w Y e j � d� � peZej � ed�� � 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"dd�Z#dd�Z$ G d� d� � Z% G d� d� � Z& G d� d� � Z'dS )� N)� assert_raises�assert_equal�assert_array_equal�assert_almost_equal�assert_array_max_ulp�ignore)�all�linuxzInadequate C99 complex support��reasonc �r � e Zd Zd� Zed� � � Zej � d�� � d� � � Z dS )�TestCexpc � � t }t j } ||ddt j d� � dd� � ||ddt j d� � t j d� � d� � t j d� � t t j d� � t j d� � � � z } ||dd|j |j d� � d S )N� r F)�check_complex_value�np�exp�cos�sin�complex�real�imag)�self�check�f�refs �v/builddir/build/BUILD/cloudlinux-venv-1.0.8/venv/lib64/python3.11/site-packages/numpy/core/tests/test_umath_complex.py�test_simplezTestCexp.test_simple! s� � �#���F�� ��a��A�r�v�a�y�y�!�U�+�+�+� ��a��A�r�v�a�y�y�"�&��)�)�U�3�3�3��f�Q�i�i�'�"�&��)�)�R�V�A�Y�Y�7�7�7�� ��a��A�s�x���5�1�1�1�1�1� c � �� t }t j � |�t j dddd� � |�t j dddd� � |�dt j t j t j � � |�dt j t j t j � � |�dt j t j t j � � |�t j dt j d� � |�t j dt j t j � � |�t j dt j z t j t j � � |�t j dt j t j � � |�t j dt j z t j t j � � �fd�} |d � � �fd�} |d � � �fd�} |d � � �fd �} |d � � |�t j dt j t j � � |�t j dt j t j � � |�t j t j t j t j � � |�t j t j t j t j � � |�t j t j t j t j � � d S ) Nr r F���� �?c �R �� d}t j d�� � 5 �t j t t j t j � � � � � � }|j dk s|j dk rt ||j |j fz � � � d d d � � d S # 1 swxY w Y d S )Nz0cexp(-inf, inf) is (%f, %f), expected (+-0, +-0)r ��invalidr )r �errstate�arrayr �infr r �AssertionError��dummy�msgform�zr s �r �_check_ninf_infz5TestCexp.test_special_values.<locals>._check_ninf_infH �� �� �H�G���X�.�.�.� E� E��A�b�h�w���w���7�7�8�8�9�9���6�Q�;�;�!�&�A�+�+�(��A�F�A�F�3C�)C�D�D�D� #.� E� E� E� E� E� E� E� E� E� E� E� E���� E� E� E� E� E� E� �A5B�B �#B c � �� d}t j d�� � 5 �t j t t j t j � � � � � � }t j |j � � rt j |j � � st ||j |j fz � � � d d d � � d S # 1 swxY w Y d S )Nz1cexp(inf, inf) is (%f, %f), expected (+-inf, nan)r r$ ) r r&