Home
last modified time | relevance | path

Searched refs:factorial (Results 1 – 14 of 14) sorted by relevance

/external/clang/test/Analysis/
Dinline.c37 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/
DDoubleMathTest.java60 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);
DBigIntegerMathTest.java393 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));
DIntMathTest.java443 BigInteger expectedBig = BigIntegerMath.factorial(n); in testFactorial()
445 assertEquals(expectedInt, IntMath.factorial(n)); in testFactorial()
453 IntMath.factorial(n); in testFactorialNegative()
DLongMathTest.java482 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/
Dconst-init-cxx11.cpp236 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/
DDoubleMath.java271 public static double factorial(int n) { in factorial() method in DoubleMath
DIntMath.java438 public static int factorial(int n) {
DBigIntegerMath.java284 public static BigInteger factorial(int n) { in factorial() method in BigIntegerMath
DLongMath.java535 public static long factorial(int n) {
/external/llvm/lib/Target/
DREADME.txt47 int factorial(int X) {
/external/bison/doc/
Dbison.texinfo5146 factorial operators (@samp{!}), and allow parentheses for grouping.
Dbison.info4799 unary factorial operators (`!'), and allow parentheses for grouping.
/external/srec/config/en.us/dictionary/
Dlarge.ok9882 factorial fakt{r/L