Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 180 for Odd (0.02 sec)

  1. src/math/erf.go

    //          erf(x)  = x + x*R(x**2)
    //          erfc(x) = 1 - erf(x)           if x in [-.84375,0.25]
    //                  = 0.5 + ((0.5-x)-x*R)  if x in [0.25,0.84375]
    //         where R = P/Q where P is an odd poly of degree 8 and
    //         Q is an odd poly of degree 10.
    //                                               -57.90
    //                      | R - (erf(x)-x)/x | <= 2
    //
    //
    //         Remark. The formula is derived by noting
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 11.5K bytes
    - Viewed (0)
  2. guava/src/com/google/common/math/DoubleUtils.java

         * We round up if either the fractional part of signif is strictly greater than 0.5 (which is
         * true if the 0.5 bit is set and any lower bit is set), or if the fractional part of signif is
         * >= 0.5 and signifFloor is odd (which is true if both the 0.5 bit and the 1 bit are set).
         */
        boolean increment =
            (twiceSignifFloor & 1) != 0 && ((signifFloor & 1) != 0 || absX.getLowestSetBit() < shift);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 28 15:37:52 UTC 2021
    - 5.1K bytes
    - Viewed (0)
  3. platforms/core-execution/hashing/src/test/groovy/org/gradle/internal/hash/HashCodeTest.groovy

        }
    
        def "not equals with null"() {
            expect:
            TestHashCodes.hashCodeFrom(0x12345678) != null
            null != TestHashCodes.hashCodeFrom(0x12345678)
        }
    
        def "won't parse string with odd length"() {
            when:
            HashCode.fromString("a" * 9)
    
            then:
            thrown Exception
        }
    
        def "won't parse string with non-hex chars: #illegal"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:43:29 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  4. src/slices/iter_test.go

    			n:      2,
    			chunks: [][]int{{1, 2}},
    		},
    		{
    			name:   "even",
    			s:      []int{1, 2, 3, 4},
    			n:      2,
    			chunks: [][]int{{1, 2}, {3, 4}},
    		},
    		{
    			name:   "odd",
    			s:      []int{1, 2, 3, 4, 5},
    			n:      2,
    			chunks: [][]int{{1, 2}, {3, 4}, {5}},
    		},
    	}
    
    	for _, tc := range cases {
    		t.Run(tc.name, func(t *testing.T) {
    			var chunks [][]int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 17:28:50 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/math/BigIntegerMathTest.java

        for (BigInteger x : POSITIVE_BIGINTEGER_CANDIDATES) {
          int halfEven = BigIntegerMath.log2(x, HALF_EVEN);
          // Now figure out what rounding mode we should behave like (it depends if FLOOR was
          // odd/even).
          boolean floorWasEven = (BigIntegerMath.log2(x, FLOOR) & 1) == 0;
          assertEquals(BigIntegerMath.log2(x, floorWasEven ? HALF_DOWN : HALF_UP), halfEven);
        }
      }
    
      @GwtIncompatible // TODO
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 17:58:33 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  6. src/math/big/prime.go

    	// An extra strong Lucas pseudoprime to base b is a composite n = 2^r s + Jacobi(Δ, n),
    	// where s is odd and gcd(n, 2*Δ) = 1, such that either (i) U_s ≡ 0 mod n and V_s ≡ ±2 mod n,
    	// or (ii) V_{2^t s} ≡ 0 mod n for some 0 ≤ t < r-1.
    	//
    	// We know gcd(n, Δ) = 1 or else we'd have found Jacobi(d, n) == 0 above.
    	// We know gcd(n, 2) = 1 because n is odd.
    	//
    	// Arrange s = (n - Jacobi(Δ, n)) / 2^r = (n+1) / 2^r.
    	s := nat(nil).add(n, natOne)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 02 14:43:52 UTC 2022
    - 10.4K bytes
    - Viewed (0)
  7. src/cmd/internal/archive/archive.go

    		// The size is in decimal.
    		// The file data - size bytes - follows the header.
    		// Headers are 2-byte aligned, so if size is odd, an extra padding
    		// byte sits between the file data and the next header.
    		// The file data that follows is padded to an even number of bytes:
    		// if size is odd, an extra padding byte is inserted betw the next header.
    		if len(data) < 60 {
    			return errTruncatedArchive
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 15:39:57 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  8. src/cmd/pack/pack_test.go

    }
    
    // Fake implementation of files.
    
    var helloFile = &FakeFile{
    	name:     "hello",
    	contents: "hello world", // 11 bytes, an odd number.
    	mode:     0644,
    }
    
    var goodbyeFile = &FakeFile{
    	name:     "goodbye",
    	contents: "Sayonara, Jim", // 13 bytes, another odd number.
    	mode:     0644,
    }
    
    // FakeFile implements FileLike and also fs.FileInfo.
    type FakeFile struct {
    	name     string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 04 16:27:35 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  9. ci/official/containers/linux_arm64/devel.usertools/aarch64.bazelrc

    # "pip tests" run a similar suite of tests the "nonpip" tests, but do something
    # odd to attempt to validate the quality of the pip package. The wheel is
    # installed into a virtual environment, and then that venv is used to run all
    # bazel tests with a special flag "--define=no_tensorflow_py_deps=true", which
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Nov 21 12:25:39 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  10. src/unique/handle.go

    	}
    	runtime.KeepAlive(toInsert)
    	return Handle[T]{ptr}
    }
    
    var (
    	// uniqueMaps is an index of type-specific concurrent maps used for unique.Make.
    	//
    	// The two-level map might seem odd at first since the HashTrieMap could have "any"
    	// as its key type, but the issue is escape analysis. We do not want to force lookups
    	// to escape the argument, and using a type-specific map allows us to avoid that where
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 16:01:55 UTC 2024
    - 5.3K bytes
    - Viewed (0)
Back to top