Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 1,784 for nmPath (0.12 sec)

  1. src/math/big/floatconv_test.go

    		// from fmt/fmt_test.go: zero padding does not apply to infinities
    		{"%020f", math.Inf(-1), "                -Inf"},
    		{"%020f", math.Inf(+1), "                +Inf"},
    		{"% 020f", math.Inf(-1), "                -Inf"},
    		{"% 020f", math.Inf(+1), "                 Inf"},
    		{"%+020f", math.Inf(-1), "                -Inf"},
    		{"%+020f", math.Inf(+1), "                +Inf"},
    		{"%20f", -1.0, "           -1.000000"},
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 24.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/cel/library/cost.go

    	case "url", "lowerAscii", "upperAscii", "substring", "trim":
    		if len(args) >= 1 {
    			cost := uint64(math.Ceil(float64(actualSize(args[0])) * common.StringTraversalCostFactor))
    			return &cost
    		}
    	case "replace", "split":
    		if len(args) >= 1 {
    			// cost is the traversal plus the construction of the result
    			cost := uint64(math.Ceil(float64(actualSize(args[0])) * 2 * common.StringTraversalCostFactor))
    			return &cost
    		}
    	case "join":
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 17:22:44 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  3. test/clear.go

    	m1[1] = 1
    	clear(m1)
    	if len(m1) != 0 {
    		panic("m1 is not cleared")
    	}
    
    	// map contains NaN keys is also cleared.
    	m2 := make(map[float64]int)
    	m2[math.NaN()] = 1
    	m2[math.NaN()] = 1
    	clear(m2)
    	if len(m2) != 0 {
    		panic("m2 is not cleared")
    	}
    
    	clear(map[int]int{})
    }
    
    func main() {
    	checkClearSlice()
    	checkClearMap()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 31 19:43:07 UTC 2023
    - 743 bytes
    - Viewed (0)
  4. src/math/big/link_test.go

    	}
    	const want = "runtime.main"
    	if !bytes.Contains(nm, []byte(want)) {
    		// Test the test.
    		t.Errorf("expected symbol %q not found", want)
    	}
    	bad := []string{
    		"math/big.(*Float)",
    		"math/big.(*Rat)",
    		"math/big.(*Int)",
    	}
    	for _, sym := range bad {
    		if bytes.Contains(nm, []byte(sym)) {
    			t.Errorf("unexpected symbol %q found", sym)
    		}
    	}
    	if t.Failed() {
    		t.Logf("Got: %s", nm)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 24 15:51:26 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  5. src/math/rand/rand_test.go

    	testWn = make([]float32, 128)
    	testFn = make([]float32, 128)
    
    	q := vn / math.Exp(-0.5*dn*dn)
    	testKn[0] = uint32((dn / q) * m1)
    	testKn[1] = 0
    	testWn[0] = float32(q / m1)
    	testWn[127] = float32(dn / m1)
    	testFn[0] = 1.0
    	testFn[127] = float32(math.Exp(-0.5 * dn * dn))
    	for i := 126; i >= 1; i-- {
    		dn = math.Sqrt(-2.0 * math.Log(vn/dn+math.Exp(-0.5*dn*dn)))
    		testKn[i+1] = uint32((dn / tn) * m1)
    		tn = dn
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  6. android/guava-tests/benchmark/com/google/common/math/LongMathBenchmark.java

     * limitations under the License.
     */
    
    package com.google.common.math;
    
    import static com.google.common.math.MathBenchmarking.ARRAY_MASK;
    import static com.google.common.math.MathBenchmarking.ARRAY_SIZE;
    import static com.google.common.math.MathBenchmarking.RANDOM_SOURCE;
    import static com.google.common.math.MathBenchmarking.randomExponent;
    import static com.google.common.math.MathBenchmarking.randomNonNegativeBigInteger;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/api/resource/scale_int.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package resource
    
    import (
    	"math"
    	"math/big"
    	"sync"
    )
    
    var (
    	// A sync pool to reduce allocation.
    	intPool  sync.Pool
    	maxInt64 = big.NewInt(math.MaxInt64)
    )
    
    func init() {
    	intPool.New = func() interface{} {
    		return &big.Int{}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 29 20:41:44 UTC 2017
    - 2.5K bytes
    - Viewed (0)
  8. test/fixedbugs/bug258.go

    package main
    
    import "math"
    
    func f() float64 {
    	math.Pow(2, 2)
    	return 1
    }
    
    func main() {
    	for i := 0; i < 10; i++ {
    		// 386 float register bug used to load constant before call
    		if -5 < f() {
    		} else {
    			println("BUG 1")
    			return
    		}
    		if f() > -7 {
    		} else {
    			println("BUG 2")
    		}
    		
    		if math.Pow(2, 3) != 8 {
    			println("BUG 3")
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 519 bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/mod_list_dir.txt

    [short] skip
    
    # go list with path to directory should work
    
    # populate go.sum
    go get
    
    env GO111MODULE=off
    go list -f '{{.ImportPath}}' $GOROOT/src/math
    stdout ^math$
    
    env GO111MODULE=on
    go list -f '{{.ImportPath}}' $GOROOT/src/math
    stdout ^math$
    go list -f '{{.ImportPath}}' .
    stdout ^x$
    
    go mod download rsc.io/quote@v1.5.2
    go list -f '{{.ImportPath}}' $GOPATH/pkg/mod/rsc.io/quote@v1.5.2
    stdout '^rsc.io/quote$'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 10 19:08:19 UTC 2022
    - 854 bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/integrator.go

    	return x == y || x != nil && y != nil && x.Duration == y.Duration && x.Min == y.Min && x.Max == y.Max && (x.Average == y.Average || math.IsNaN(x.Average) && math.IsNaN(y.Average)) && (x.Deviation == y.Deviation || math.IsNaN(x.Deviation) && math.IsNaN(y.Deviation))
    }
    
    type integrator struct {
    	name  string
    	clock clock.PassiveClock
    	sync.Mutex
    	lastTime time.Time
    	x        float64
    	moments  Moments
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 03 17:37:20 UTC 2022
    - 5K bytes
    - Viewed (0)
Back to top