Home
last modified time | relevance | path

Searched refs:Squares (Results 1 – 13 of 13) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_builtin.py17 class Squares: class
454 self.assertEqual(filter(None, Squares(10)), [1, 4, 9, 16, 25, 36, 49, 64, 81])
455 self.assertEqual(filter(lambda x: x%2, Squares(10)), [1, 9, 25, 49, 81])
458 filter(identity, Squares(5))
772 map(None, Squares(10)),
776 map(int, Squares(10)),
780 map(None, Squares(3), Squares(2)),
784 map(max, Squares(3), Squares(2)),
1193 self.assertEqual(reduce(add, Squares(10)), 285)
1194 self.assertEqual(reduce(add, Squares(10), 0), 285)
[all …]
Dtest_functools.py452 class Squares: class
479 self.assertEqual(reduce(lambda x, y: x+y, Squares(10)), 285)
480 self.assertEqual(reduce(lambda x, y: x+y, Squares(10), 0), 285)
481 self.assertEqual(reduce(lambda x, y: x+y, Squares(0), 0), 0)
Dtest_grammar.py793 class Squares: class
806 for x in Squares(10): n = n+x
/external/python/cpython3/Lib/test/
Dtest_builtin.py39 class Squares: class
707 self.assertEqual(list(filter(None, Squares(10))), [1, 4, 9, 16, 25, 36, 49, 64, 81])
708 self.assertEqual(list(filter(lambda x: x%2, Squares(10))), [1, 9, 25, 49, 81])
711 filter(identity, Squares(5))
911 list(map(int, Squares(10))),
921 list(map(Max, Squares(3), Squares(2))),
1388 self.assertEqual(sum(Squares(10)), 285)
1389 self.assertEqual(sum(iter(Squares(10))), 285)
Dtest_grammar.py1226 class Squares: class
1239 for x in Squares(10): n = n+x
Dtest_functools.py770 class Squares: class
797 self.assertEqual(self.reduce(add, Squares(10)), 285)
798 self.assertEqual(self.reduce(add, Squares(10), 0), 285)
799 self.assertEqual(self.reduce(add, Squares(0), 0), 0)
/external/python/cpython2/Lib/lib2to3/tests/data/
Dpy3_test_grammar.py546 class Squares: class
559 for x in Squares(10): n = n+x
Dpy2_test_grammar.py602 class Squares: class
615 for x in Squares(10): n = n+x
/external/python/cpython3/Lib/lib2to3/tests/data/
Dpy2_test_grammar.py602 class Squares: class
615 for x in Squares(10): n = n+x
Dpy3_test_grammar.py570 class Squares: class
583 for x in Squares(10): n = n+x
/external/one-true-awk/testdir/
Dfunstack.ok150 H. Spath ACM Algorithm 376: Least Squares Fit by
1713 Squares Problems . . . . . . . . . . . . 167--169
1945 Nonlinear Least Squares'' . . . . . . . 591--591
2086 L. F. Shampine Discrete Least Squares Polynomial Fits 179--180
Dfunstack.in922 title = "{ACM} Algorithm 376: Least Squares Fit by {$f(x)=A\cos(Bx+C)$}",
12853 …"Efficient Implementation of a Variable Projection Algorithm for Nonlinear Least Squares Problems",
12873 …ng; least squares approximations; lsq; mathematical techniques --- Least Squares Approximations; n…
14614 …ta: ``{Efficient Implementation of a Variable Projection Algorithm for Nonlinear Least Squares}''",
15743 title = "Discrete Least Squares Polynomial Fits",
/external/icu/icu4c/source/data/unidata/
Dppucd.txt12770 # Squares
12780 # Squares