1jZ 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"ddZ#ddZ$ G d d Z% G d d Z& G d d Z'dS ) N)
assert_raisesassert_equalassert_array_equalassert_almost_equalassert_array_max_ulpignore)alllinuxzInadequate C99 complex supportreasonc 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_valuenpexpcossincomplexrealimag)selfcheckfrefs w/builddir/build/BUILD/cloudlinux-venv-1.0.11/venv/lib64/python3.11/site-packages/numpy/core/tests/test_umath_complex.pytest_simplezTestCexp.test_simple! s #F
aArvayy!U+++
aArvayy"&))U333fQii'"&))RVAYY777
aAsx511111 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 errstatearrayr infr r AssertionErrordummymsgformzr s r _check_ninf_infz5TestCexp.test_special_values.