o
    §ƒðjU  ã                   @   sž   d dl mZ d dl mZ d dlmZ d dlmZ dddœdd	„Zeeƒ eƒ eƒ d
�dd„ ƒZ	eeƒ edd�d�dd„ ƒZ
eedd�eddd�d�dd„ ƒZdS )é    )Úgiven)Ú
strategies)Úx)ÚPolyFÚZZ)ÚnonzeroÚdomainc                 C   sL   t  ¡ t  ¡ dœ}t  || ¡}| r| t¡}t jt|t  t	¡t  |¡d�S )N)r   ÚQQ©r   )
ÚstÚintegersÚ	fractionsÚlistsÚfilterÚanyÚbuildsr   Újustr   )r   r   ÚelemsÚcoeff_st© r   ú£/tmp/claude-1000/-var-www-html-academy/3f42efd1-c2b7-4d08-9b05-30d86bb35479/scratchpad/piper/venv/lib/python3.10/site-packages/sympy/polys/tests/test_hypothesis.pyÚpolys   s
   
r   )ÚfÚgÚrc                 C   sB   |   |¡}|  | ¡}||ksJ ‚|  | ||  ¡}||ksJ ‚d S )N)Úgcd)r   r   r   Úgcd_1Úgcd_2Úgcd_3r   r   r   Útest_gcd_hypothesis   s
   

r   T)r   )Úf_zÚg_zc                 C   ó2   |   |¡}| ¡ | ¡ ks| ¡ dksJ ‚d S d S ©Nr   ©ÚremÚdegree)r    r!   Úremainder_zr   r   r   Útest_poly_hypothesis_integers   ó   
(r(   r	   r
   )Úf_qÚg_qc                 C   r"   r#   r$   )r*   r+   Úremainder_qr   r   r   Útest_poly_hypothesis_rationals!   r)   r-   N)Ú
hypothesisr   r   r   Ú	sympy.abcr   Úsympy.polys.polytoolsr   r   r   r(   r-   r   r   r   r   Ú<module>   s    	


