Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 963 for REAL (0.06 sec)

  1. test/fixedbugs/bug491.go

    		if len(a) != 1 || len(c) != 3 {
    			bug()
    			println("make call not ordered:", len(a), b, len(c))
    		}
    	}
    
    	// real
    	{
    		x := 1 + 0i
    		f := func() int { x = 3; return 2 }
    		a, b, c := real(x), f(), real(x)
    		if a != 1 || c != 3 {
    			bug()
    			println("real call not ordered:", a, b, c)
    		}
    	}
    }
    
    var bugged = false
    
    func bug() {
    	if !bugged {
    		println("BUG")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 2K bytes
    - Viewed (0)
  2. pkg/proxy/ipvs/graceful_termination.go

    )
    
    const (
    	rsCheckDeleteInterval = 1 * time.Minute
    )
    
    // listItem stores real server information and the process time.
    // If nothing special happened, real server will be delete after process time.
    type listItem struct {
    	VirtualServer *utilipvs.VirtualServer
    	RealServer    *utilipvs.RealServer
    }
    
    // String return the unique real server name(with virtual server information)
    func (g *listItem) String() string {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  3. test/cmplxdivide.go

    package main
    
    import (
    	"fmt"
    	"math"
    )
    
    func calike(a, b complex128) bool {
    	if imag(a) != imag(b) && !(math.IsNaN(imag(a)) && math.IsNaN(imag(b))) {
    		return false
    	}
    
    	if real(a) != real(b) && !(math.IsNaN(real(a)) && math.IsNaN(real(b))) {
    		return false
    	}
    
    	return true
    }
    
    func main() {
    	bad := false
    	for _, t := range tests {
    		x := t.f / t.g
    		if !calike(x, t.out) {
    			if !bad {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 15 22:45:17 UTC 2017
    - 868 bytes
    - Viewed (0)
  4. src/math/cmplx/isnan.go

    // license that can be found in the LICENSE file.
    
    package cmplx
    
    import "math"
    
    // IsNaN reports whether either real(x) or imag(x) is NaN
    // and neither is an infinity.
    func IsNaN(x complex128) bool {
    	switch {
    	case math.IsInf(real(x), 0) || math.IsInf(imag(x), 0):
    		return false
    	case math.IsNaN(real(x)) || math.IsNaN(imag(x)):
    		return true
    	}
    	return false
    }
    
    // NaN returns a complex “not-a-number” value.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:52:29 UTC 2022
    - 598 bytes
    - Viewed (0)
  5. src/math/cmplx/sqrt.go

    // Sqrt returns the square root of x.
    // The result r is chosen so that real(r) ≥ 0 and imag(r) has the same sign as imag(x).
    func Sqrt(x complex128) complex128 {
    	if imag(x) == 0 {
    		// Ensure that imag(r) has the same sign as imag(x) for imag(x) == signed zero.
    		if real(x) == 0 {
    			return complex(0, imag(x))
    		}
    		if real(x) < 0 {
    			return complex(0, math.Copysign(math.Sqrt(-real(x)), imag(x)))
    		}
    		return complex(math.Sqrt(real(x)), imag(x))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 01 03:16:37 UTC 2020
    - 3K bytes
    - Viewed (0)
  6. pkg/proxy/ipvs/util/testing/fake_test.go

    	}
    	// Add real server to the virtual server
    	for i := range rss {
    		if err = fake.AddRealServer(vs, rss[i]); err != nil {
    			t.Errorf("Fail to add real server, error: %v", err)
    		}
    	}
    	// Delete a real server of the virtual server
    	// Make sure any position of the list can be real deleted
    	rssLen := len(rss)
    	for i := range rss {
    		// List all real servers of the virtual server
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  7. src/math/cmplx/sin.go

    func Sin(x complex128) complex128 {
    	switch re, im := real(x), imag(x); {
    	case im == 0 && (math.IsInf(re, 0) || math.IsNaN(re)):
    		return complex(math.NaN(), im)
    	case math.IsInf(im, 0):
    		switch {
    		case re == 0:
    			return x
    		case math.IsInf(re, 0) || math.IsNaN(re):
    			return complex(math.NaN(), im)
    		}
    	case re == 0 && math.IsNaN(im):
    		return x
    	}
    	s, c := math.Sincos(real(x))
    	sh, ch := sinhcosh(imag(x))
    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. test/fixedbugs/issue4654.go

    	defer make(map[string]int) // ERROR "defer discards result of make|is not used"
    	defer new(int) // ERROR "defer discards result of new|is not used"
    	defer real(1i) // ERROR "defer discards result of real|is not used"
    	defer real(c) // ERROR "defer discards result of real|is not used"
    	defer append(x, 1) // ERROR "defer discards result of append|is not used"
    	defer append(x, 1) // ERROR "defer discards result of append|is not used"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 2.7K bytes
    - Viewed (0)
  9. test/fixedbugs/bug401.go

    type I interface {
    	cplx() complex128
    }
    
    func main() {
    
    	var t T
    
    	if v := real(t.cplx()); v != 1 {
    		panic("not-inlined complex call failed")
    	}
    	_ = imag(t.cplx())
    
    	_ = real(t.cplx2())
    	if v := imag(t.cplx2()); v != 1 {
    		panic("potentially inlined complex call failed")
    	}
    
    	var i I
    	i = t
    	if v := real(i.cplx()); v != 1 {
    		panic("potentially inlined complex call failed")
    	}
    	_ = imag(i.cplx())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 740 bytes
    - Viewed (0)
  10. pkg/proxy/ipvs/util/ipvs.go

    	GetVirtualServers() ([]*VirtualServer, error)
    	// AddRealServer creates the specified real server for the specified virtual server.
    	AddRealServer(*VirtualServer, *RealServer) error
    	// GetRealServers returns all real servers for the specified virtual server.
    	GetRealServers(*VirtualServer) ([]*RealServer, error)
    	// DeleteRealServer deletes the specified real server from the specified virtual server.
    	DeleteRealServer(*VirtualServer, *RealServer) error
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 4.2K bytes
    - Viewed (0)
Back to top