- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for TestBinomial (0.13 sec)
-
android/guava-tests/test/com/google/common/math/IntMathTest.java
fail("Expected IllegalArgumentException"); } catch (IllegalArgumentException expected) { } } } // Depends on the correctness of BigIntegerMath.binomial. public void testBinomial() { for (int n = 0; n <= 50; n++) { for (int k = 0; k <= n; k++) { BigInteger expectedBig = BigIntegerMath.binomial(n, k);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 07 17:50:39 UTC 2024 - 24.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/LongMathTest.java
fail("Expected IllegalArgumentException"); } catch (IllegalArgumentException expected) { } } } // Depends on the correctness of BigIntegerMath.binomial. public void testBinomial() { for (int n = 0; n <= 70; n++) { for (int k = 0; k <= n; k++) { BigInteger expectedBig = BigIntegerMath.binomial(n, k);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Mar 04 20:15:57 UTC 2024 - 32.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/LongMathTest.java
fail("Expected IllegalArgumentException"); } catch (IllegalArgumentException expected) { } } } // Depends on the correctness of BigIntegerMath.binomial. public void testBinomial() { for (int n = 0; n <= 70; n++) { for (int k = 0; k <= n; k++) { BigInteger expectedBig = BigIntegerMath.binomial(n, k);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Mar 04 20:15:57 UTC 2024 - 32.5K bytes - Viewed (0) -
src/math/big/int_test.go
} // test other ranges for i, r := range mulRangesZ { prod := tmp.MulRange(r.a, r.b).String() if prod != r.prod { t.Errorf("#%db: got %s; want %s", i, prod, r.prod) } } } func TestBinomial(t *testing.T) { var z Int for _, test := range []struct { n, k int64 want string }{ {0, 0, "1"}, {0, 1, "0"}, {1, 0, "1"}, {1, 1, "1"}, {1, 10, "0"}, {4, 0, "1"},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 58.5K bytes - Viewed (0)