HomeSort by relevance Sort by last modified time
    Searched full:factorial (Results 1 - 25 of 89) sorted by null

1 2 3 4

  /cts/tests/sample/src/android/sample/cts/
SampleDeviceResultTest.java 40 * The input number for the factorial.
45 * The expected output number for the factorial.
50 * Measures the time taken to compute the factorial of 15 with a recursive method.
58 // Compute the factorial and assert it is correct.
65 * Measures the time taken to compute the factorial of 15 with a iterative method.
73 // Compute the factorial and assert it is correct.
80 * Computes the factorial of a number with a recursive method.
82 * @param num The number to compute the factorial of.
92 * Computes the factorial of a number with a iterative method.
94 * @param num The number to compute the factorial of
    [all...]
  /external/chromium/testing/gtest/samples/
sample1_unittest.cc 76 // Tests Factorial().
78 // Tests factorial of negative numbers.
82 EXPECT_EQ(1, Factorial(-5));
83 EXPECT_EQ(1, Factorial(-1));
84 EXPECT_TRUE(Factorial(-10) > 0);
102 // Tests factorial of 0.
104 EXPECT_EQ(1, Factorial(0));
107 // Tests factorial of positive numbers.
109 EXPECT_EQ(1, Factorial(1));
110 EXPECT_EQ(2, Factorial(2))
    [all...]
sample5_unittest.cc 99 // Tests Factorial()
100 TEST_F(IntegerFunctionTest, Factorial) {
101 // Tests factorial of negative numbers.
102 EXPECT_EQ(1, Factorial(-5));
103 EXPECT_EQ(1, Factorial(-1));
104 EXPECT_TRUE(Factorial(-10) > 0);
106 // Tests factorial of 0.
107 EXPECT_EQ(1, Factorial(0));
109 // Tests factorial of positive numbers.
110 EXPECT_EQ(1, Factorial(1))
    [all...]
sample1.h 37 // Returns n! (the factorial of n). For negative n, n! is defined to be 1.
38 int Factorial(int n);
sample1.cc 36 // Returns n! (the factorial of n). For negative n, n! is defined to be 1.
37 int Factorial(int n) {
  /external/chromium_org/testing/gtest/samples/
sample1_unittest.cc 76 // Tests Factorial().
78 // Tests factorial of negative numbers.
82 EXPECT_EQ(1, Factorial(-5));
83 EXPECT_EQ(1, Factorial(-1));
84 EXPECT_GT(Factorial(-10), 0);
102 // Tests factorial of 0.
104 EXPECT_EQ(1, Factorial(0));
107 // Tests factorial of positive numbers.
109 EXPECT_EQ(1, Factorial(1));
110 EXPECT_EQ(2, Factorial(2))
    [all...]
sample5_unittest.cc 99 // Tests Factorial()
100 TEST_F(IntegerFunctionTest, Factorial) {
101 // Tests factorial of negative numbers.
102 EXPECT_EQ(1, Factorial(-5));
103 EXPECT_EQ(1, Factorial(-1));
104 EXPECT_GT(Factorial(-10), 0);
106 // Tests factorial of 0.
107 EXPECT_EQ(1, Factorial(0));
109 // Tests factorial of positive numbers.
110 EXPECT_EQ(1, Factorial(1))
    [all...]
sample1.h 37 // Returns n! (the factorial of n). For negative n, n! is defined to be 1.
38 int Factorial(int n);
  /external/gtest/samples/
sample1_unittest.cc 76 // Tests Factorial().
78 // Tests factorial of negative numbers.
82 EXPECT_EQ(1, Factorial(-5));
83 EXPECT_EQ(1, Factorial(-1));
84 EXPECT_TRUE(Factorial(-10) > 0);
102 // Tests factorial of 0.
104 EXPECT_EQ(1, Factorial(0));
107 // Tests factorial of positive numbers.
109 EXPECT_EQ(1, Factorial(1));
110 EXPECT_EQ(2, Factorial(2))
    [all...]
sample5_unittest.cc 99 // Tests Factorial()
100 TEST_F(IntegerFunctionTest, Factorial) {
101 // Tests factorial of negative numbers.
102 EXPECT_EQ(1, Factorial(-5));
103 EXPECT_EQ(1, Factorial(-1));
104 EXPECT_TRUE(Factorial(-10) > 0);
106 // Tests factorial of 0.
107 EXPECT_EQ(1, Factorial(0));
109 // Tests factorial of positive numbers.
110 EXPECT_EQ(1, Factorial(1))
    [all...]
sample1.h 37 // Returns n! (the factorial of n). For negative n, n! is defined to be 1.
38 int Factorial(int n);
  /external/protobuf/gtest/samples/
sample1_unittest.cc 76 // Tests Factorial().
78 // Tests factorial of negative numbers.
82 EXPECT_EQ(1, Factorial(-5));
83 EXPECT_EQ(1, Factorial(-1));
84 EXPECT_TRUE(Factorial(-10) > 0);
102 // Tests factorial of 0.
104 EXPECT_EQ(1, Factorial(0));
107 // Tests factorial of positive numbers.
109 EXPECT_EQ(1, Factorial(1));
110 EXPECT_EQ(2, Factorial(2))
    [all...]
sample5_unittest.cc 99 // Tests Factorial()
100 TEST_F(IntegerFunctionTest, Factorial) {
101 // Tests factorial of negative numbers.
102 EXPECT_EQ(1, Factorial(-5));
103 EXPECT_EQ(1, Factorial(-1));
104 EXPECT_TRUE(Factorial(-10) > 0);
106 // Tests factorial of 0.
107 EXPECT_EQ(1, Factorial(0));
109 // Tests factorial of positive numbers.
110 EXPECT_EQ(1, Factorial(1))
    [all...]
sample1.h 37 // Returns n! (the factorial of n). For negative n, n! is defined to be 1.
38 int Factorial(int n);
  /ndk/sources/third_party/googletest/googletest/samples/
sample1_unittest.cc 76 // Tests Factorial().
78 // Tests factorial of negative numbers.
82 EXPECT_EQ(1, Factorial(-5));
83 EXPECT_EQ(1, Factorial(-1));
84 EXPECT_GT(Factorial(-10), 0);
102 // Tests factorial of 0.
104 EXPECT_EQ(1, Factorial(0));
107 // Tests factorial of positive numbers.
109 EXPECT_EQ(1, Factorial(1));
110 EXPECT_EQ(2, Factorial(2))
    [all...]
sample5_unittest.cc 99 // Tests Factorial()
100 TEST_F(IntegerFunctionTest, Factorial) {
101 // Tests factorial of negative numbers.
102 EXPECT_EQ(1, Factorial(-5));
103 EXPECT_EQ(1, Factorial(-1));
104 EXPECT_GT(Factorial(-10), 0);
106 // Tests factorial of 0.
107 EXPECT_EQ(1, Factorial(0));
109 // Tests factorial of positive numbers.
110 EXPECT_EQ(1, Factorial(1))
    [all...]
sample1.h 37 // Returns n! (the factorial of n). For negative n, n! is defined to be 1.
38 int Factorial(int n);
  /external/clang/test/Analysis/
inline.c 37 unsigned factorial(unsigned x) { function
40 return x * factorial(x - 1);
44 if (factorial(3) == 6) {
55 unsigned x = factorial(3);
56 if (x == factorial(3)) {
  /external/markdown/tests/misc/
arabic.html 9 <p>???? ???????? ??????? Factorial :</p>
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
profilee.py 33 factorial(14) # 130
35 def factorial(n): function
43 return mul(n, factorial(n-1))
86 factorial(3) # 20
test_cprofile.py 50 23/3 0.150 0.007 0.170 0.057 profilee.py:35(factorial)
74 profilee.py:35(factorial) <- 1 0.014 0.130 profilee.py:25(testfunc)
75 20/3 0.130 0.147 profilee.py:35(factorial)
77 profilee.py:48(mul) <- 20 0.020 0.020 profilee.py:35(factorial)
100 profilee.py:25(testfunc) -> 1 0.014 0.130 profilee.py:35(factorial)
102 profilee.py:35(factorial) -> 20/3 0.130 0.147 profilee.py:35(factorial)
111 profilee.py:84(helper2_indirect) -> 2 0.006 0.040 profilee.py:35(factorial)
test_profile.py 111 23/3 149.937 6.519 169.917 56.639 profilee.py:35(factorial)
137 profilee.py:35(factorial) <- profilee.py:25(testfunc)(1) 999.753
138 profilee.py:35(factorial)(20) 169.917
140 profilee.py:48(mul) <- profilee.py:35(factorial)(20) 169.917
164 profilee.py:25(testfunc) -> profilee.py:35(factorial)(1) 169.917
166 profilee.py:35(factorial) -> profilee.py:35(factorial)(20) 169.917
175 profilee.py:84(helper2_indirect) -> profilee.py:35(factorial)(2) 169.917
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
profilee.py 33 factorial(14) # 130
35 def factorial(n): function
43 return mul(n, factorial(n-1))
86 factorial(3) # 20
test_cprofile.py 50 23/3 0.150 0.007 0.170 0.057 profilee.py:35(factorial)
74 profilee.py:35(factorial) <- 1 0.014 0.130 profilee.py:25(testfunc)
75 20/3 0.130 0.147 profilee.py:35(factorial)
77 profilee.py:48(mul) <- 20 0.020 0.020 profilee.py:35(factorial)
100 profilee.py:25(testfunc) -> 1 0.014 0.130 profilee.py:35(factorial)
102 profilee.py:35(factorial) -> 20/3 0.130 0.147 profilee.py:35(factorial)
111 profilee.py:84(helper2_indirect) -> 2 0.006 0.040 profilee.py:35(factorial)
test_profile.py 111 23/3 149.937 6.519 169.917 56.639 profilee.py:35(factorial)
137 profilee.py:35(factorial) <- profilee.py:25(testfunc)(1) 999.753
138 profilee.py:35(factorial)(20) 169.917
140 profilee.py:48(mul) <- profilee.py:35(factorial)(20) 169.917
164 profilee.py:25(testfunc) -> profilee.py:35(factorial)(1) 169.917
166 profilee.py:35(factorial) -> profilee.py:35(factorial)(20) 169.917
175 profilee.py:84(helper2_indirect) -> profilee.py:35(factorial)(2) 169.917

Completed in 4091 milliseconds

1 2 3 4