Home
last modified time | relevance | path

Searched refs:divmod (Results 1 – 25 of 2771) sorted by relevance

12345678910>>...111

/dports/math/mpdecimal/mpdecimal-2.5.1/tests/testdata_dist/
H A Ddivmod.decTest2 -- Short random test for divmod.
20 divmod4 divmod 58874 71 -> 829 15
54 divmod21 divmod -222. +Inf -> -0 -222
98 divmod43 divmod -29199. -57 -> 512 -15
152 divmod70 divmod 7 +6 -> 1 1
704 divmod346 divmod +31. -Inf -> -0 31
1218 divmod603 divmod -325 -8 -> 40 -5
1236 divmod612 divmod +54 +3. -> 18 0
1352 divmod670 divmod +0.1 -4 -> -0 0.1
1480 divmod734 divmod -335 +6 -> -55 -5
[all …]
/dports/math/py-numpy/numpy-1.20.3/numpy/typing/tests/data/pass/
H A Dmod.py30 divmod(td, td)
45 divmod(b_, b)
46 divmod(b_, i)
47 divmod(b_, f)
48 divmod(b_, b_)
49 divmod(b_, i8)
50 divmod(b_, u8)
63 divmod(b, b_)
64 divmod(i, b_)
65 divmod(f, b_)
[all …]
/dports/math/py-numpy/numpy-1.20.3/numpy/typing/tests/data/reveal/
H A Dmod.py31 reveal_type(divmod(AR2, td)) # E: Tuple[Any, Any]
32 reveal_type(divmod(td, AR2)) # E: Tuple[Any, Any]
46 reveal_type(divmod(b_, i)) # E: Tuple[numpy.signedinteger[Any], numpy.signedinteger[Any]]
52 reveal_type(divmod(b_, AR)) # E: Tuple[Any, Any]
70 reveal_type(divmod(AR, b_)) # E: Tuple[Any, Any]
94 reveal_type(divmod(i8, AR)) # E: Tuple[Any, Any]
116 reveal_type(divmod(AR, i8)) # E: Tuple[Any, Any]
128 reveal_type(divmod(f8, i)) # E: Tuple[numpy.floating[Any], numpy.floating[Any]]
133 reveal_type(divmod(f8, AR)) # E: Tuple[Any, Any]
144 reveal_type(divmod(i, f8)) # E: Tuple[numpy.floating[Any], numpy.floating[Any]]
[all …]
/dports/lang/sagittarius-scheme/sagittarius-0.9.8/test/r6rs-test-suite/tests/r6rs/
H A Dbase.sls39 (define-syntax divmod-test/?
49 (define-syntax divmod-test
688 (divmod-test +17 +3)
689 (divmod-test +17 -3)
690 (divmod-test -17 +3)
691 (divmod-test -17 -3)
692 (divmod-test +16 +3)
693 (divmod-test +16 -3)
694 (divmod-test -16 +3)
695 (divmod-test -16 -3)
[all …]
/dports/lang/mosh/mosh-0.2.7/tests/r6rs-test-suite/tests/r6rs/
H A Dbase.sls39 (define-syntax divmod-test/?
49 (define-syntax divmod-test
682 (divmod-test +17 +3)
683 (divmod-test +17 -3)
684 (divmod-test -17 +3)
685 (divmod-test -17 -3)
686 (divmod-test +16 +3)
687 (divmod-test +16 -3)
688 (divmod-test -16 +3)
689 (divmod-test -16 -3)
[all …]
/dports/lang/kawa/kawa-3.1.1/testsuite/larceny-tests/tests/scheme/
H A Dinexact.sld61 (define-syntax divmod-test/?
72 (define-syntax divmod-test
76 (divmod-test/? x1 x2)
245 (divmod-test +17.0 +3.0)
246 (divmod-test +17.0 -3.0)
247 (divmod-test -17.0 +3.0)
248 (divmod-test -17.0 -3.0)
249 (divmod-test +16.0 +3.0)
250 (divmod-test +16.0 -3.0)
251 (divmod-test -16.0 +3.0)
[all …]
/dports/finance/py-quantecon/quantecon-0.5.2/quantecon/util/
H A Dtiming.py65 m, s = divmod(elapsed, 60)
66 h, m = divmod(m, 60)
98 m, s = divmod(elapsed, 60)
99 h, m = divmod(m, 60)
153 m, s = divmod(elapsed, 60)
154 h, m = divmod(m, 60)
163 m, s = divmod(average_time, 60)
164 h, m = divmod(m, 60)
167 m, s = divmod(average_of_best, 60)
168 h, m = divmod(m, 60)
/dports/science/rdkit/rdkit-Release_2021_03_5/rdkit/sping/PDF/
H A Dpdfutils.py181 c1, c2 = divmod(temp, 85)
206 temp, c5 = divmod(num, 85)
207 temp, c4 = divmod(temp, 85)
208 temp, c3 = divmod(temp, 85)
209 c1, c2 = divmod(temp, 85)
252 temp, b4 = divmod(num, 256)
253 temp, b3 = divmod(temp, 256)
254 b1, b2 = divmod(temp, 256)
272 temp, b4 = divmod(num, 256)
273 temp, b3 = divmod(temp, 256)
[all …]
/dports/graphics/piddle/piddle-1.0.15/src/piddle/
H A Dpdfutils.py176 c1, c2 = divmod(temp, 85)
200 temp, c5 = divmod(num, 85)
201 temp, c4 = divmod(temp, 85)
202 temp, c3 = divmod(temp, 85)
203 c1, c2 = divmod(temp, 85)
246 temp, b4 = divmod(num,256)
247 temp, b3 = divmod(temp,256)
248 b1, b2 = divmod(temp, 256)
266 temp, b4 = divmod(num,256)
267 temp, b3 = divmod(temp,256)
[all …]
/dports/lang/micropython/micropython-1.17/tests/basics/
H A Dbuiltin_divmod.py3 print(divmod(0, 2))
4 print(divmod(3, 4))
5 print(divmod(20, 3))
8 divmod(1, 0)
13 divmod('a', 'b')
H A Dbuiltin_divmod_intbig.py4 divmod(1 << 65, 0)
10 print(divmod(3, l))
11 print(divmod(l, 5))
12 print(divmod(l + 3, l))
13 print(divmod(l * 20, l + 2))
/dports/math/py-Diofant/Diofant-0.13.0/diofant/tests/core/
H A Dtest_numbers.py105 assert divmod(Integer(12), 8) == (1, 4)
106 assert divmod(12, Integer(8)) == (1, 4)
116 assert divmod(Integer(2), 2) == (1, 0)
117 assert divmod(2, Integer(2)) == (1, 0)
137 assert divmod(2, Float(3.5)) == (0, 2)
147 assert divmod(2, Float(0.1)) == (20, 0)
149 assert divmod(1.5, Float(0.1)) == (15, 0)
160 assert divmod(-3, Integer(2)) == (-2, 1)
162 assert divmod(Integer(-3), 2) == (-2, 1)
167 assert divmod(Integer(4), Float(-2.1)) == divmod(4, -2.1)
[all …]
/dports/security/beecrypt/beecrypt-4.2.1/python/test/
H A Dtest_methods.py109 wq, wr = divmod(wa, wb)
110 zq, zr = divmod(za, zb)
226 print "rem --:\t", divmod(wma, wmb), "\t", divmod(zma, zmb)
227 print "rem -+:\t", divmod(wma, wpb), "\t", divmod(zma, zpb)
228 print "rem +-:\t", divmod(wpa, wmb), "\t", divmod(zpa, zmb)
229 print "rem ++:\t", divmod(wpa, wpb), "\t", divmod(zpa, zpb)
230 print "rem --:\t", divmod(wmb, wma), "\t", divmod(zmb, zma)
231 print "rem -+:\t", divmod(wmb, wpa), "\t", divmod(zmb, zpa)
232 print "rem +-:\t", divmod(wpb, wma), "\t", divmod(zpb, zma)
233 print "rem ++:\t", divmod(wpb, wpa), "\t", divmod(zpb, zpa)
/dports/print/py-reportlab/reportlab-3.5.68/src/reportlab/lib/
H A Drl_accel.py199 c1, c2 = divmod(temp, 85)
227 temp, c5 = divmod(num, 85)
228 temp, c4 = divmod(temp, 85)
229 temp, c3 = divmod(temp, 85)
230 c1, c2 = divmod(temp, 85)
275 temp, b4 = divmod(num,256)
276 temp, b3 = divmod(temp,256)
277 b1, b2 = divmod(temp, 256)
296 temp, b4 = divmod(num,256)
297 temp, b3 = divmod(temp,256)
[all …]
/dports/science/py-abipy/abipy-0.9.0/abipy/flowtk/
H A Dqutils.py81 days, hours = divmod(timeval, d)
82 hours, minutes = divmod(hours, h)
83 minutes, secs = divmod(minutes, m)
98 hours, minutes = divmod(timeval, h)
99 minutes, secs = divmod(minutes, m)
114 hours, minutes = divmod(timeval, h)
115 minutes, secs = divmod(minutes, m)
/dports/security/sqlmap/sqlmap-1.3.12/sqlmap/lib/core/
H A Dcompat.py49 a, x = divmod(a, 30268)
50 a, y = divmod(a, 30306)
51 a, z = divmod(a, 30322)
137 t, x = divmod(t, 256)
138 t, y = divmod(t, 256)
139 t, z = divmod(t, 256)
160 a, x = divmod(a, 256)
161 a, y = divmod(a, 256)
162 a, z = divmod(a, 256)
/dports/math/py-sympy/sympy-1.9/sympy/core/tests/
H A Dtest_numbers.py113 assert divmod(S(12), 8) == Tuple(1, 4)
114 assert divmod(12, S(8)) == Tuple(1, 4)
156 assert divmod(2, S("0.1"))[0] == 19
169 assert divmod(-3, S(2)) == (-2, 1)
170 assert divmod(S(-3), S(2)) == (-2, 1)
171 assert divmod(S(-3), 2) == (-2, 1)
174 assert divmod(S(4), S(-2.1)) == divmod(4, -2.1)
188 assert divmod(S(3.5), S(-2)) == divmod(3.5, -2)
189 assert divmod(-S(3.5), S(-2)) == divmod(-3.5, -2)
190 assert divmod(S(0.0), S(9)) == divmod(0.0, 9)
[all …]
/dports/www/py-nevow/Nevow-0.14.0/
H A DChangeLog1 2006-06-12 Glyph Lefkowitz <glyph@divmod.com>
5 2006-04-07 Jp Calderone <exarkun@divmod.com>
13 2006-03-30 Jp Calderone <exarkun@divmod.com>
18 2006-03-29 Jp Calderone <exarkun@divmod.com>
23 2006-03-27 Jp Calderone <exarkun@divmod.com>
29 2006-03-24 Allen Short <washort@divmod.com>
38 2006-03-17 Jp Calderone <exarkun@divmod.com>
48 2006-02-28 Jp Calderone <exarkun@divmod.com>
60 2006-02-14 Jp Calderone <exarkun@divmod.com>
327 2005-3-23 Donovan Preston <dp@divmod.org>
[all …]
/dports/devel/py-jep/jep-3.9.1/src/test/python/
H A Dtest_numbers.py67 self.assertEqual(divmod(i, i), divmod(pi, pi))
68 self.assertEqual(divmod(i, 3), divmod(pi, 3))
69 self.assertEqual(divmod(j, j), divmod(pj, pj))
70 self.assertEqual(divmod(j, 301), divmod(pj, 301))
71 self.assertEqual(divmod(d, d), divmod(pd, pd))
72 self.assertEqual(divmod(d, 4.53), divmod(pd, 4.53))
/dports/print/py-python-ly/python-ly-0.9.6/ly/
H A Dutil.py47 hundreds, number = divmod(number, 1000)
50 tens, number = divmod(number, 100)
55 tens, number = divmod(number, 10)
78 k, n = divmod(n, num)
96 number, c = divmod(number - 1, mod)
/dports/devel/py-pyperf/pyperf-2.3.0/pyperf/
H A D_formatter.py50 mins, secs = divmod(seconds, 60.0)
52 hours, mins = divmod(mins, 60)
53 days, hours = divmod(hours, 24)
73 x, r = divmod(x, 10)
84 x, r = divmod(x, 2)
/dports/astro/py-sgp4/python-sgp4-2.20/sgp4/
H A Dfunctions.py64 minute, second = divmod(second, 60.0)
69 hour, minute = divmod(minute, 60)
70 day_of_year, hour = divmod(hour, 24)
84 month, day = divmod(2 * (day_of_year - 1 + 30 * august + february_bump), 61)
/dports/devel/py-natural/natural-0.2.0/natural/
H A Ddate.py186 minutes, seconds = divmod(total_abs, TIME_MINUTE)
205 hours, seconds = divmod(total_abs, TIME_HOUR)
225 days, seconds = divmod(total_abs, TIME_DAY)
250 weeks, seconds = divmod(total_abs, TIME_WEEK)
435 weeks, seconds = divmod(seconds, TIME_WEEK)
436 days, seconds = divmod(seconds, TIME_DAY)
437 hours, seconds = divmod(seconds, TIME_HOUR)
438 minutes, seconds = divmod(seconds, TIME_MINUTE)
/dports/net/kippo/kippo-0.9/kippo/core/
H A Dutils.py14 minutes, seconds = divmod(seconds, 60)
15 hours, minutes = divmod(minutes, 60)
16 days, hours = divmod(hours, 24)
17 years, days = divmod(days, 365.242199)
/dports/astro/py-skyfield/skyfield-1.41/skyfield/
H A Dtimelib.py193 seconds2, sfr = divmod(sfr + more, 1.0)
531 second, micro = divmod(micro, 1000000)
650 minute, second = divmod(second, 60)
651 hour, minute = divmod(minute, 60)
896 w, f = divmod(other_time, 1.0)
911 w, f = divmod(other_time, 1.0)
946 y, month = divmod(month - 1, 12)
1001 whole1, fraction1 = divmod(jd_float, 1.0)
1006 minute, second = divmod(second, 60.0)
1008 hour, minute = divmod(minute, 60)
[all …]

12345678910>>...111