HomeSort by relevance Sort by last modified time
    Searched full:factorial (Results 26 - 50 of 88) sorted by null

12 3 4

  /external/libcxx/test/algorithms/alg.sorting/alg.permutation.generators/
prev_permutation_comp.pass.cpp 26 int factorial(int x) function
59 assert(count == factorial(e));
  /external/protobuf/gtest/samples/
sample1.cc 36 // Returns n! (the factorial of n). For negative n, n! is defined to be 1.
37 int Factorial(int n) {
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/algorithms/alg.sorting/alg.permutation.generators/
next_permutation.pass.cpp 25 int factorial(int x) function
57 assert(count == factorial(e));
next_permutation_comp.pass.cpp 26 int factorial(int x) function
59 assert(count == factorial(e));
prev_permutation.pass.cpp 25 int factorial(int x) function
57 assert(count == factorial(e));
prev_permutation_comp.pass.cpp 26 int factorial(int x) function
59 assert(count == factorial(e));
  /ndk/sources/third_party/googletest/googletest/samples/
sample1.cc 36 // Returns n! (the factorial of n). For negative n, n! is defined to be 1.
37 int Factorial(int n) {
  /external/markdown/tests/misc/
bidi.txt 41 ???? ???????? ??????? Factorial :
bidi.html 19 <p>???? ???????? ??????? Factorial :</p>
  /prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/share/doc/mpfr/
AUTHORS 12 and base-10 exponential and logarithm, factorial
  /external/guava/guava-tests/test/com/google/common/math/
DoubleMathTest.java 60 assertTrue(BigIntegerMath.factorial(DoubleMath.MAX_FACTORIAL).compareTo(MAX_DOUBLE_VALUE) <= 0);
62 BigIntegerMath.factorial(DoubleMath.MAX_FACTORIAL + 1).compareTo(MAX_DOUBLE_VALUE) > 0);
68 BigIntegerMath.factorial(n).doubleValue(), DoubleMath.EVERY_SIXTEENTH_FACTORIAL[i]);
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);
BigIntegerMathTest.java 393 assertEquals(expected, BigIntegerMath.factorial(i));
398 assertEquals(BigInteger.ONE, BigIntegerMath.factorial(0));
404 BigIntegerMath.factorial(n);
410 // Depends on the correctness of BigIntegerMath.factorial
415 .factorial(n)
416 .divide(BigIntegerMath.factorial(k))
417 .divide(BigIntegerMath.factorial(n - k));
IntMathTest.java 439 // Depends on the correctness of BigIntegerMath.factorial.
443 BigInteger expectedBig = BigIntegerMath.factorial(n);
445 assertEquals(expectedInt, IntMath.factorial(n));
449 @GwtIncompatible("factorial")
453 IntMath.factorial(n);
LongMathTest.java 479 // Depends on the correctness of BigIntegerMath.factorial.
482 BigInteger expectedBig = BigIntegerMath.factorial(n);
484 assertEquals(expectedLong, LongMath.factorial(n));
491 LongMath.factorial(n);
  /external/jemalloc/test/unit/
math.c 24 factorial(unsigned x) function
42 (double)factorial(x-1), MAX_REL_ERR, MAX_ABS_ERR),
43 "Incorrect factorial result for x=%u", x);
  /external/chromium_org/v8/test/mjsunit/compiler/
loops.js 32 // Factorial!
  /external/vixl/examples/
factorial-rec.cc 75 printf("factorial(%ld) = %ld\n", input_val, simulator.xreg(0));
  /external/vixl/test/examples/
test-examples.cc 171 TEST_FUNCTION(factorial); \
175 TEST(factorial) {
178 Label factorial; local
179 masm.Bind(&factorial);
  /packages/apps/Calculator/res/values/
donottranslate_strings.xml 34 <!-- Factorial operator (e.g. "2!"). [CHAR_LIMIT=1] -->
  /external/chromium_org/v8/test/mjsunit/
sin-cos.js 71 var factorial = [1]; variable
74 factorial[i] = factorial[i-1] * i;
92 terms.push(sign * x / factorial[i]);
105 terms.push(sign * x / factorial[i]);
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/lib-dynload/
math.so 
  /external/guava/guava/src/com/google/common/math/
BigIntegerMath.java 278 * <p>This uses an efficient binary recursive algorithm to compute the factorial
284 public static BigInteger factorial(int n) { method in class:BigIntegerMath
287 // If the factorial is small enough, just use LongMath to do it.
296 // Start from the pre-computed maximum long factorial.
  /packages/apps/Calculator/res/values-ca/
strings.xml 53 <string name="desc_op_fact" msgid="5004950609277631750">"factorial"</string>
  /packages/apps/Calculator/res/values-en-rGB/
strings.xml 53 <string name="desc_op_fact" msgid="5004950609277631750">"factorial"</string>
  /packages/apps/Calculator/res/values-en-rIN/
strings.xml 53 <string name="desc_op_fact" msgid="5004950609277631750">"factorial"</string>

Completed in 496 milliseconds

12 3 4