K i &ddldZdZdZdZy))*cdt_ttddj tdsJtt dj t d sJttddk(sJttdd dk(sJttdd d k(sJttdj tsJttdd j tsJttdd d tz j tdzsJtdddj dsJtddddj dsJtddddj dsJtt dj t dsJtt ddj t d sJy)Ng@r)ng?g) direction)rr c |dzS)Nrxs \/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/mpmath/tests/test_diff.pyztest_diff.. s !Q$g@quadmethodcd|dzzSNr r rrs rrztest_diff..!AqD&r)rricd|dzzSrrrs rrztest_diff..rrstep) mpdpsdifflogaecossinabsexpejdiffunrrr test_diffr)s BF SA  ! !#a& )) ) S>  c!fW %% % S>Q   SA &! ++ + SB '2 -- - S>  Q   SA  ! !! $$ $ SA1 - 0 0A 66 6 F 3 6 6q 99 9  #6 : = =c BB B  #6 : = =c BB B 6#;q>  SV $$ $ 6# A  ! !3q6' ** *rcdt_ttddDcgc] }t |c}ddgk(sJttdddDcgc] }t |c}ddgk(sJttddDcgc] }t |c}gdk(sJttdddDcgc] }t |c}gdk(sJycc}wcc}wcc}wcc}w)Nrrrrrrrrr)rrdiffsr#chop)ds r test_diffsr/s BF"31- .DG .1a& 88 8"31V< =DG =!Q GG G"31- .DG .) ;; ;"31V< =DG = JJ J / = . =sC C?C0CcJdt_ttddgdk(sJy)Nrr)rg?gg?g)rrtaylorsqrtrrr test_taylorr4s! BF $1 !E EE Ercdt_dx\}}}}d}t||djdsJt||djdsJt||djd sJt||d jd sJt||d jd sJt||djdsJt||djdsJt||djdsJt||djdsJt||djdsJt||djdsJt||djd sJt||djd sJt||djd sJt||djdsJt||djdsJt||djdsJt||djdsJt||djd sJt||d!jd"sJt||d#jd$sJt||d%jd&sJt||d'jd(sJt||d)jd*sJt||d+jd,sJt||d-jd.sJt||d/jd0sJy)1Nr)rr c0d|dzz|dzdzz|dzzS)Nr rr r)ryzs rrz#test_diff_partial.."s$a1f!ax'!Q$.r)rrri)rrri)rrriPr+i)rrriݤ)rrri05^)rrriR\)rrriA)rrri%)rrr)rrr)rrr)rrr)rrr)rrr)rrr)rrr)rrr)rrriBW)rrrib)rrriN)rrrigs)rrrinR)rrri/)rrril).)rrri )rrrip)rrrr!)rr8r9xyzfs rtest_diff_partialr<s- BFEAaC.A 3 # #H -- - 3 # #H -- - 3 # #H -- - 3 # #H -- - 3 # #H -- - 3 # #G ,, , 3 # #G ,, , 3 # #G ,, , 3 # #G ,, , 3 # #H -- - 3 # #H -- - 3 # #H -- - 3 # #H -- - 3 # #H -- - 3 # #G ,, , 3 # #G ,, , 3 # #G ,, , 3 # #G ,, , 3 # #H -- - 3 # #G ,, , 3 # #G ,, , 3 # #G ,, , 3 # #G ,, , 3 # #G ,, , 3 # #G ,, , 3 # #G ,, , 3 # #G ,, ,rN)mpmathr)r/r4r<rrrr>s+ KF -r