Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 959 for mymath (0.1 sec)

  1. guava/src/com/google/common/math/package-info.java

    /**
     * Arithmetic functions operating on primitive values and on {@link java.math.BigInteger} and {@link
     * java.math.BigDecimal} instances.
     *
     * <p>This package is a part of the open-source <a href="https://github.com/google/guava">Guava</a>
     * library.
     *
     * <p>See the Guava User Guide article on <a
     * href="https://github.com/google/guava/wiki/MathExplained">math utilities</a>.
     */
    @ParametersAreNonnullByDefault
    @CheckReturnValue
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 23 19:57:03 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  2. src/encoding/gob/decgen.go

    			error_(ovfl)
    		}
    		slice[i] = int(x)`,
    	},
    	{
    		"int16",
    		"Int16",
    		`x := state.decodeInt()
    		if x < math.MinInt16 || math.MaxInt16 < x {
    			error_(ovfl)
    		}
    		slice[i] = int16(x)`,
    	},
    	{
    		"int32",
    		"Int32",
    		`x := state.decodeInt()
    		if x < math.MinInt32 || math.MaxInt32 < x {
    			error_(ovfl)
    		}
    		slice[i] = int32(x)`,
    	},
    	{
    		"int64",
    		"Int64",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 14:15:38 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/math/ToDoubleRounder.java

     * the License.
     */
    
    package com.google.common.math;
    
    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.math.MathPreconditions.checkRoundingUnnecessary;
    
    import com.google.common.annotations.GwtIncompatible;
    import java.math.RoundingMode;
    
    /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  4. src/internal/fuzz/mutator.go

    	case int8:
    		vals[i] = int8(m.mutateInt(int64(v), math.MaxInt8))
    	case int16:
    		vals[i] = int16(m.mutateInt(int64(v), math.MaxInt16))
    	case int64:
    		vals[i] = m.mutateInt(v, maxInt)
    	case uint:
    		vals[i] = uint(m.mutateUInt(uint64(v), maxUint))
    	case uint16:
    		vals[i] = uint16(m.mutateUInt(uint64(v), math.MaxUint16))
    	case uint32:
    		vals[i] = uint32(m.mutateUInt(uint64(v), math.MaxUint32))
    	case uint64:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 20:01:34 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  5. src/internal/trace/traceviewer/histogram.go

    package traceviewer
    
    import (
    	"fmt"
    	"html/template"
    	"math"
    	"strings"
    	"time"
    )
    
    // TimeHistogram is an high-dynamic-range histogram for durations.
    type TimeHistogram struct {
    	Count                int
    	Buckets              []int
    	MinBucket, MaxBucket int
    }
    
    // Five buckets for every power of 10.
    var logDiv = math.Log(math.Pow(10, 1.0/5))
    
    // Add adds a single sample to the histogram.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 21:28:58 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  6. src/internal/fmtsort/sort_test.go

    	ct(reflect.TypeOf(uint64(0)), 0, 1, 5),
    	ct(reflect.TypeOf(uintptr(0)), 0, 1, 5),
    	ct(reflect.TypeOf(string("")), "", "a", "ab"),
    	ct(reflect.TypeOf(float32(0)), math.NaN(), math.Inf(-1), -1e10, 0, 1e10, math.Inf(1)),
    	ct(reflect.TypeOf(float64(0)), math.NaN(), math.Inf(-1), -1e10, 0, 1e10, math.Inf(1)),
    	ct(reflect.TypeOf(complex64(0+1i)), -1-1i, -1+0i, -1+1i, 0-1i, 0+0i, 0+1i, 1-1i, 1+0i, 1+1i),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  7. test/convinline.go

    		return fmt.Sprintf("%s(%#x)", t2, uint64(v))
    	case "uintptr":
    		return fmt.Sprintf("%s(%#x)", t2, uintptr(v))
    	case "float32":
    		v := float32(v)
    		if math.IsInf(float64(v), -1) {
    			return "float32(math.Inf(-1))"
    		}
    		if math.IsInf(float64(v), +1) {
    			return "float32(math.Inf(+1))"
    		}
    		return fmt.Sprintf("%s(%v)", t2, float64(v))
    	case "float64":
    		return fmt.Sprintf("%s(%v)", t2, float64(v))
    	}
    	panic(t2)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 17 13:46:05 UTC 2022
    - 4.7K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top