Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 963 for REAL (0.03 sec)

  1. test/ken/cplx4.go

    	doprint(c1, "(5.000000+6.000000i)")
    
    	// 128
    	c2 := complex128(C1)
    	s = fmt.Sprintf("%G", c2)
    	want(s, "(5+6i)")
    
    	// real, imag, complex
    	c3 := complex(real(c2)+3, imag(c2)-5) + c2
    	s = fmt.Sprintf("%G", c3)
    	want(s, "(13+7i)")
    
    	// compiler used to crash on nested divide
    	c4 := complex(real(c3/2), imag(c3/2))
    	if c4 != c3/2 {
    		fmt.Printf("BUG: c3 = %G != c4 = %G\n", c3, c4)
    		panic(0)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 05:24:24 UTC 2012
    - 1K bytes
    - Viewed (0)
  2. src/math/cmplx/tan.go

    func Tan(x complex128) complex128 {
    	switch re, im := real(x), imag(x); {
    	case math.IsInf(im, 0):
    		switch {
    		case math.IsInf(re, 0) || math.IsNaN(re):
    			return complex(math.Copysign(0, re), math.Copysign(1, im))
    		}
    		return complex(math.Copysign(0, math.Sin(2*re)), math.Copysign(1, im))
    	case re == 0 && math.IsNaN(im):
    		return x
    	}
    	d := math.Cos(2*real(x)) + math.Cosh(2*imag(x))
    	if math.Abs(d) < 0.25 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 01 03:16:37 UTC 2020
    - 8.5K bytes
    - Viewed (0)
  3. src/math/cmplx/pow.go

    // For generalized compatibility with [math.Pow]:
    //
    //	Pow(0, ±0) returns 1+0i
    //	Pow(0, c) for real(c)<0 returns Inf+0i if imag(c) is zero, otherwise Inf+Inf i.
    func Pow(x, y complex128) complex128 {
    	if x == 0 { // Guaranteed also true for x == -0.
    		if IsNaN(y) {
    			return NaN()
    		}
    		r, i := real(y), imag(y)
    		switch {
    		case r == 0:
    			return 1
    		case r < 0:
    			if i == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  4. test/devirt.go

    package main
    
    // Trivial interface call devirtualization test.
    
    type real struct {
    	value int
    }
    
    func (r *real) Value() int { return r.value }
    
    type Valuer interface {
    	Value() int
    }
    
    type indirectiface struct {
    	a, b, c int
    }
    
    func (i indirectiface) Value() int {
    	return i.a + i.b + i.c
    }
    
    func main() {
    	var r Valuer
    	rptr := &real{value: 3}
    	r = rptr
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 09 16:10:20 UTC 2021
    - 574 bytes
    - Viewed (0)
  5. test/fixedbugs/bug275.go

    // license that can be found in the LICENSE file.
    
    // This is a test case for issue 788.
    
    package main
    
    func main() {
    	var a [1]complex64
    
    	t := a[0]
    	_ = real(t) // this works
    
    	_ = real(a[0]) // this doesn't
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 396 bytes
    - Viewed (0)
  6. platforms/jvm/jvm-services/src/test/groovy/org/gradle/jvm/toolchain/internal/AsdfInstallationSupplierTest.groovy

            given:
            def real = candidates.createDir("installs/java/11.0.6.hs-adpt")
            def symlink = candidates.file("installs/java/symlink").createLink(real)
    
            when:
            def directories = supplier.get()
    
            then:
            directories.size() == 2
            directories*.location.containsAll(real, symlink)
            directories*.source.unique() == ["asdf-vm"]
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 22:17:53 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  7. okhttp-testing-support/src/main/kotlin/okhttp3/SpecificHostSocketFactory.kt

    ) : DelegatingSocketFactory(getDefault()) {
      private val hostMapping = mutableMapOf<InetAddress, InetSocketAddress>()
    
      /** Sets the [real] address for [requested].  */
      operator fun set(
        requested: InetAddress,
        real: InetSocketAddress,
      ) {
        hostMapping[requested] = real
      }
    
      override fun createSocket(): Socket {
        return object : Socket() {
          override fun connect(
            endpoint: SocketAddress?,
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  8. .github/ISSUE_TEMPLATE/feature_enhancement_request.yaml

            Did you *actually* encounter the need for this enhancement in a real-world scenario, or does
            it just seem like a sensible behavior for the feature to have?
    
    
            Before we make significant changes to existing features in Guava, we really want to be sure
            that it's for a use case that actually comes up in the real world. We want to hear the
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Nov 17 18:47:47 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  9. platforms/jvm/jvm-services/src/test/groovy/org/gradle/jvm/toolchain/internal/SdkmanInstallationSupplierTest.groovy

            given:
            def real = candidates.createDir("java/11.0.6.hs-adpt")
            def symlink = candidates.file("java/symlink").createLink(real)
    
            when:
            def directories = supplier.get()
    
            then:
            directories.size() == 2
            directories*.location.containsAll(real, symlink)
            directories*.source.unique() == ["SDKMAN!"]
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 22:17:53 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  10. test/fixedbugs/issue11590.go

    // license that can be found in the LICENSE file.
    
    package p
    
    var _ = int8(4) * 300         // ERROR "overflows int8"
    var _ = complex64(1) * 1e200  // ERROR "complex real part overflow|overflows complex64"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 11 02:26:58 UTC 2022
    - 419 bytes
    - Viewed (0)
Back to top