K iUddlmZddlmZddlmZddlmZddddZeeee d Z eeed  dZ eeded ddZ y))given) strategies)x)PolyFZZ)nonzerodomainc@tjtjd}tj||}|r|j t }tj t|tjttj|S)N)rQQr ) stintegers fractionslistsfilteranybuildsrjustr)rr elemscoeff_sts g/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/sympy/polys/tests/test_hypothesis.pypolysrs`;;=  7Exxf &H??3' 99T8RWWQZ HH)fgrc|j|}|j|}||k(sJ|j|||zz}||k(sJy)N)gcd)rrrgcd_1gcd_2gcd_3s rtest_gcd_hypothesisr"sL EE!HE EE!HE E>> EE!a!e) E E>>rT)r)f_zg_zc|j|}|j|jk\s|jdk(sJyyNrremdegree)r#r$ remainder_zs rtest_poly_hypothesis_integersr+B''#,K ::<;--/ /;3E3E3G13LL L3L /rr r )f_qg_qc|j|}|j|jk\s|jdk(sJyyr&r')r-r. remainder_qs rtest_poly_hypothesis_rationalsr1!r,rN) hypothesisrrr sympy.abcrsympy.polys.polytoolsrrr"r+r1rrr6s'&4IEGuw'(57d+,M-M 5 5d#CDMEMr