Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 1,755 for math3 (0.1 sec)

  1. src/cmd/gofmt/testdata/import.input

    package main
    
    import (
    	"fmt"
    	"math"
    	"log"
    	"errors"
    	"io"
    )
    
    import (
    	"fmt"
    
    	"math"
    
    	"log"
    
    	"errors"
    
    	"io"
    )
    
    // We reset the line numbering to test that
    // the formatting works independent of line directives
    //line :19
    
    import (
    	"fmt"
    	"math"
    	"log"
    	"errors"
    	"io"
    
    	"fmt"
    
    	"math"
    
    	"log"
    
    	"errors"
    
    	"io"
    )
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 28 23:33:26 UTC 2019
    - 2.1K bytes
    - Viewed (0)
  2. 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)
  3. src/math/cmplx/cmath_test.go

    	{NaN(),
    		NaN()},
    }
    var vcIsNaNSC = []complex128{
    	complex(math.Inf(-1), math.Inf(-1)),
    	complex(math.Inf(-1), math.NaN()),
    	complex(math.NaN(), math.Inf(-1)),
    	complex(0, math.NaN()),
    	complex(math.NaN(), 0),
    	complex(math.Inf(1), math.Inf(1)),
    	complex(math.Inf(1), math.NaN()),
    	complex(math.NaN(), math.Inf(1)),
    	complex(math.NaN(), math.NaN()),
    }
    var isNaNSC = []bool{
    	false,
    	false,
    	false,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 01 03:16:37 UTC 2020
    - 48.1K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. src/cmd/gofmt/testdata/import.golden

    package main
    
    import (
    	"errors"
    	"fmt"
    	"io"
    	"log"
    	"math"
    )
    
    import (
    	"fmt"
    
    	"math"
    
    	"log"
    
    	"errors"
    
    	"io"
    )
    
    // We reset the line numbering to test that
    // the formatting works independent of line directives
    //line :19
    
    import (
    	"errors"
    	"fmt"
    	"io"
    	"log"
    	"math"
    
    	"fmt"
    
    	"math"
    
    	"log"
    
    	"errors"
    
    	"io"
    )
    
    import (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 28 23:33:26 UTC 2019
    - 2.1K bytes
    - Viewed (0)
  7. src/math/cmplx/sqrt.go

    		}
    		if real(x) < 0 {
    			return complex(0, math.Copysign(math.Sqrt(-real(x)), imag(x)))
    		}
    		return complex(math.Sqrt(real(x)), imag(x))
    	} else if math.IsInf(imag(x), 0) {
    		return complex(math.Inf(1.0), imag(x))
    	}
    	if real(x) == 0 {
    		if imag(x) < 0 {
    			r := math.Sqrt(-0.5 * imag(x))
    			return complex(r, -r)
    		}
    		r := math.Sqrt(0.5 * imag(x))
    		return complex(r, r)
    	}
    	a := real(x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 01 03:16:37 UTC 2020
    - 3K 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. src/math/cmplx/exp.go

    	switch re, im := real(x), imag(x); {
    	case math.IsInf(re, 0):
    		switch {
    		case re > 0 && im == 0:
    			return x
    		case math.IsInf(im, 0) || math.IsNaN(im):
    			if re < 0 {
    				return complex(0, math.Copysign(0, im))
    			} else {
    				return complex(math.Inf(1.0), math.NaN())
    			}
    		}
    	case math.IsNaN(re):
    		if im == 0 {
    			return complex(math.NaN(), im)
    		}
    	}
    	r := math.Exp(real(x))
    	s, c := math.Sincos(imag(x))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 01 03:16:37 UTC 2020
    - 2.1K bytes
    - Viewed (0)
  10. 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)
Back to top