Searched refs:factorial (Results 1 – 14 of 14) sorted by relevance
/external/clang/test/Analysis/ |
D | inline.c | 37 unsigned factorial(unsigned x) { in factorial() function 40 return x * factorial(x - 1); in factorial() 44 if (factorial(3) == 6) { in test_factorial() 55 unsigned x = factorial(3); in test_factorial_2() 56 if (x == factorial(3)) { in test_factorial_2()
|
/external/guava/guava-tests/test/com/google/common/math/ |
D | DoubleMathTest.java | 60 assertTrue(BigIntegerMath.factorial(DoubleMath.MAX_FACTORIAL).compareTo(MAX_DOUBLE_VALUE) <= 0); in testConstantsMaxFactorial() 62 BigIntegerMath.factorial(DoubleMath.MAX_FACTORIAL + 1).compareTo(MAX_DOUBLE_VALUE) > 0); in testConstantsMaxFactorial() 68 BigIntegerMath.factorial(n).doubleValue(), DoubleMath.EVERY_SIXTEENTH_FACTORIAL[i]); in testConstantsEverySixteenthFactorial() 459 double actual = BigIntegerMath.factorial(i).doubleValue(); 460 double result = DoubleMath.factorial(i); 466 assertEquals(Double.POSITIVE_INFINITY, DoubleMath.factorial(DoubleMath.MAX_FACTORIAL + 1)); 467 assertEquals(Double.POSITIVE_INFINITY, DoubleMath.factorial(DoubleMath.MAX_FACTORIAL + 20)); 473 DoubleMath.factorial(n);
|
D | BigIntegerMathTest.java | 393 assertEquals(expected, BigIntegerMath.factorial(i)); 398 assertEquals(BigInteger.ONE, BigIntegerMath.factorial(0)); 404 BigIntegerMath.factorial(n); 415 .factorial(n) 416 .divide(BigIntegerMath.factorial(k)) 417 .divide(BigIntegerMath.factorial(n - k));
|
D | IntMathTest.java | 443 BigInteger expectedBig = BigIntegerMath.factorial(n); in testFactorial() 445 assertEquals(expectedInt, IntMath.factorial(n)); in testFactorial() 453 IntMath.factorial(n); in testFactorialNegative()
|
D | LongMathTest.java | 482 BigInteger expectedBig = BigIntegerMath.factorial(n); in testFactorial() 484 assertEquals(expectedLong, LongMath.factorial(n)); in testFactorial() 491 LongMath.factorial(n); in testFactorialNegative()
|
/external/clang/test/CodeGenCXX/ |
D | const-init-cxx11.cpp | 236 constexpr int factorial(int n) { in factorial() function 237 return n ? factorial(n-1) * n : 1; in factorial() 242 constexpr NonTrivialDtor() : n(factorial(5)), p(&n) {} in NonTrivialDtor()
|
/external/guava/guava/src/com/google/common/math/ |
D | DoubleMath.java | 271 public static double factorial(int n) { in factorial() method in DoubleMath
|
D | IntMath.java | 438 public static int factorial(int n) {
|
D | BigIntegerMath.java | 284 public static BigInteger factorial(int n) { in factorial() method in BigIntegerMath
|
D | LongMath.java | 535 public static long factorial(int n) {
|
/external/llvm/lib/Target/ |
D | README.txt | 47 int factorial(int X) {
|
/external/bison/doc/ |
D | bison.texinfo | 5146 factorial operators (@samp{!}), and allow parentheses for grouping.
|
D | bison.info | 4799 unary factorial operators (`!'), and allow parentheses for grouping.
|
/external/srec/config/en.us/dictionary/ |
D | large.ok | 9882 factorial fakt{r/L
|