
    oVh                          d dl mZ d dlmZmZ d dlmZ d dlmZm	Z	m
Z
mZ d dlmZ d dlmZ d dlmZ d dlmZ d d	lmZmZmZmZmZmZmZ  ed
      Z ed
d      Zd Zd Zd Z d Z!d Z"d Z#d Z$d Z%y)    )Add)
NumberKindUndefinedKind)Mul)pizooIAlgebraicNumber)S)Symbol)Integral)
Derivative)MatrixSparseMatrixImmutableMatrixImmutableSparseMatrixMatrixSymbol
MatrixKindMatMulxF)commutativec                  V   t         j                  j                  t        u sJ t        j                  t        u sJ t         j
                  j                  t        u sJ t        j                  t        u sJ t        j                  t        u sJ t        d      j                  t        u sJ y )N   )	r   Onekindr   r   NaNr   r	   r
        J/home/dcms/DCMS/lib/python3.12/site-packages/sympy/core/tests/test_kind.pytest_NumberKindr       s}    55::###77j   55::###88z!!!66Z1""j000r   c                      t        ddd      j                  t        u sJ t        dt              j                  t        u sJ t        dt              j                  t
        u sJ y )N      Fevaluate)r   r   r   comm_x	noncomm_xr   r   r   r   test_Add_kindr(      sT    q!e$))Z777q=+++q  M111r   c                     t        dt        d      j                  t        u sJ t        ddd      j                  t        u sJ t        t        dd      j                  t
        u sJ t        dt        d      j                  t
        u sJ y )Nr"   Fr$   r#   )r   r&   r   r   r'   r   r   r   r   test_mul_kindr*      sv    q%(--;;;qU#((J666yU+00MAAAqU+00MAAAr   c                  d    t         j                  t        u sJ t        j                  t        u sJ y )N)r&   r   r   r'   r   r   r   r   test_Symbol_kindr,   "   s&    ;;*$$$>>]***r   c                      t        ddd      } t        t        t              j                  t        u sJ t        | t              j                  t        t              u sJ y NAr"   )r   r   r&   r   r   r   r/   s    r   test_Integral_kindr1   &   sK    S!AAFF#((J666Av##z*'====r   c                      t        ddd      } t        t        t              j                  t        u sJ t        | t              j                  t        t              u sJ y r.   )r   r   r&   r   r   r   r0   s    r   test_Derivative_kindr3   +   sK    S!AAff%**j888a %%J)????r   c                      t         t        t        t        f} | D ]1  }|j	                  dd      }|j
                  t        t              u r1J  y )Nr#   r"   )r   r   r   r   zerosr   r   r   )classesclsms      r   test_Matrix_kindr9   0   sF    |_6KLG 0IIaOvvJ////0r   c                      t        ddgddgg      } t        d|       j                  t        t              u sJ t        t
        |       j                  t        t              u sJ y )Nr   r"   r#      )r   r   r   r   r   r&   )Ms    r   test_MatMul_kindr=   6   sW    1qe}A!Q<
: 6666&!!!Z
%;;;;r   N)&sympy.core.addr   sympy.core.kindr   r   sympy.core.mulr   sympy.core.numbersr   r   r	   r
   sympy.core.singletonr   sympy.core.symbolr   sympy.integrals.integralsr   sympy.core.functionr   sympy.matricesr   r   r   r   r   r   r   r&   r'   r    r(   r*   r,   r1   r3   r9   r=   r   r   r   <module>rG      sp     5  : : " $ . *= = = 
3E*	12
B+>
@
0<r   