Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 1,532 for math3 (0.04 sec)

  1. src/math/example_test.go

    func ExampleExpm1() {
    	fmt.Printf("%.6f\n", math.Expm1(0.01))
    	fmt.Printf("%.6f\n", math.Expm1(-1))
    	// Output:
    	// 0.010050
    	// -0.632121
    }
    
    func ExampleTrunc() {
    	fmt.Printf("%.2f\n", math.Trunc(math.Pi))
    	fmt.Printf("%.2f\n", math.Trunc(-1.2345))
    	// Output:
    	// 3.00
    	// -1.00
    }
    
    func ExampleCbrt() {
    	fmt.Printf("%.2f\n", math.Cbrt(8))
    	fmt.Printf("%.2f\n", math.Cbrt(27))
    	// Output:
    	// 2.00
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 07 18:09:53 UTC 2021
    - 3.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/test/float_test.go

    		t.Errorf("d9 <= d1 returned true")
    	}
    	if math.NaN() == math.NaN() {
    		t.Errorf("math.NaN() == math.NaN() returned true")
    	}
    	if math.NaN() >= math.NaN() {
    		t.Errorf("math.NaN() >= math.NaN() returned true")
    	}
    	if math.NaN() <= math.NaN() {
    		t.Errorf("math.NaN() <= math.NaN() returned true")
    	}
    	if math.Copysign(math.NaN(), -1) < math.NaN() {
    		t.Errorf("math.Copysign(math.NaN(), -1) < math.NaN() returned true")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:54:15 UTC 2022
    - 12.5K bytes
    - Viewed (0)
  3. api/go1.9.txt

    pkg math/bits, func Len(uint) int
    pkg math/bits, func Len16(uint16) int
    pkg math/bits, func Len32(uint32) int
    pkg math/bits, func Len64(uint64) int
    pkg math/bits, func Len8(uint8) int
    pkg math/bits, func OnesCount(uint) int
    pkg math/bits, func OnesCount16(uint16) int
    pkg math/bits, func OnesCount32(uint32) int
    pkg math/bits, func OnesCount64(uint64) int
    pkg math/bits, func OnesCount8(uint8) int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 04 20:20:20 UTC 2021
    - 10.7K bytes
    - Viewed (0)
  4. api/go1.22.txt

    pkg math/rand/v2, func Shuffle(int, func(int, int)) #61716
    pkg math/rand/v2, func Uint32() uint32 #61716
    pkg math/rand/v2, func Uint32N(uint32) uint32 #61716
    pkg math/rand/v2, func Uint64() uint64 #61716
    pkg math/rand/v2, func Uint64N(uint64) uint64 #61716
    pkg math/rand/v2, func UintN(uint) uint #61716
    pkg math/rand/v2, method (*ChaCha8) MarshalBinary() ([]uint8, error) #61716
    pkg math/rand/v2, method (*ChaCha8) Seed([32]uint8) #61716
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 20:54:27 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  5. src/cmp/cmp_test.go

    	{1.0, 1.1, -1},
    	{1.1, 1.1, 0},
    	{1.1, 1.0, +1},
    	{math.Inf(1), math.Inf(1), 0},
    	{math.Inf(-1), math.Inf(-1), 0},
    	{math.Inf(-1), 1.0, -1},
    	{1.0, math.Inf(-1), +1},
    	{math.Inf(1), 1.0, +1},
    	{1.0, math.Inf(1), -1},
    	{math.NaN(), math.NaN(), 0},
    	{0.0, math.NaN(), +1},
    	{math.NaN(), 0.0, -1},
    	{math.NaN(), math.Inf(-1), -1},
    	{math.Inf(-1), math.NaN(), +1},
    	{0.0, 0.0, 0},
    	{negzero, negzero, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 23:39:07 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  6. test/fixedbugs/issue53600.go

    // license that can be found in the LICENSE file.
    
    package main
    
    import "math"
    
    func main() {
    	f()
    	g()
    	h()
    	j(math.MinInt64)
    }
    func f() {
    	for i := int64(math.MaxInt64); i <= math.MaxInt64; i++ {
    		if i < 0 {
    			println("done")
    			return
    		}
    		println(i, i < 0)
    	}
    }
    func g() {
    	for i := int64(math.MaxInt64) - 1; i <= math.MaxInt64; i++ {
    		if i < 0 {
    			println("done")
    			return
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 06 17:00:37 UTC 2022
    - 802 bytes
    - Viewed (0)
  7. src/math/cmplx/sin.go

    	case im == 0 && (math.IsInf(re, 0) || math.IsNaN(re)):
    		return complex(math.NaN(), -im*math.Copysign(0, re))
    	case math.IsInf(im, 0):
    		switch {
    		case re == 0:
    			return complex(math.Inf(1), -re*math.Copysign(0, im))
    		case math.IsInf(re, 0) || math.IsNaN(re):
    			return complex(math.Inf(1), math.NaN())
    		}
    	case re == 0 && math.IsNaN(im):
    		return complex(math.NaN(), 0)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 17:59:44 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  8. src/math/rand/zipf.go

    	z.v = v
    	z.q = s
    	z.oneminusQ = 1.0 - z.q
    	z.oneminusQinv = 1.0 / z.oneminusQ
    	z.hxm = z.h(z.imax + 0.5)
    	z.hx0minusHxm = z.h(0.5) - math.Exp(math.Log(z.v)*(-z.q)) - z.hxm
    	z.s = 1 - z.hinv(z.h(1.5)-math.Exp(-z.q*math.Log(z.v+1.0)))
    	return z
    }
    
    // Uint64 returns a value drawn from the [Zipf] distribution described
    // by the [Zipf] object.
    func (z *Zipf) Uint64() uint64 {
    	if z == nil {
    		panic("rand: nil Zipf")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  9. api/go1.17.txt

    pkg math (linux-amd64-cgo), const MinInt = -9223372036854775808
    pkg math (linux-arm), const MaxInt = 2147483647
    pkg math (linux-arm), const MaxUint = 4294967295
    pkg math (linux-arm), const MinInt = -2147483648
    pkg math (linux-arm-cgo), const MaxInt = 2147483647
    pkg math (linux-arm-cgo), const MaxUint = 4294967295
    pkg math (linux-arm-cgo), const MinInt = -2147483648
    pkg math (netbsd-386), const MaxInt = 2147483647
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 20:31:46 UTC 2023
    - 18K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/roundtrip_test.go

    			name: "int32 zero",
    			obj:  int32(math.MinInt32),
    		},
    		{
    			name: "uint32 max",
    			obj:  uint32(math.MaxUint32),
    		},
    		{
    			name: "uint32 zero",
    			obj:  uint32(0),
    		},
    		{
    			name: "int16 max",
    			obj:  int16(math.MaxInt16),
    		},
    		{
    			name: "int16 min",
    			obj:  int16(math.MinInt16),
    		},
    		{
    			name: "int16 zero",
    			obj:  int16(math.MinInt16),
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 21:48:12 UTC 2024
    - 7.1K bytes
    - Viewed (0)
Back to top