Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 255 for 2xcomplex (0.1 sec)

  1. test/gcgort.go

    		t: func() {
    			c := complex64(complex(float32(1.01), float32(1.01)))
    			for i := 0; i < mods; i++ {
    				c = complex(real(c)*1.01, imag(c)*1.01)
    				runtime.Gosched()
    			}
    		},
    		pointerT: func() {
    			a := func() *complex64 { return new(complex64) }()
    			*a = complex64(complex(float32(1.01), float32(1.01)))
    			for i := 0; i < mods; i++ {
    				*a *= complex(real(*a)*1.01, imag(*a)*1.01)
    				runtime.Gosched()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 08 21:15:48 UTC 2018
    - 34.5K bytes
    - Viewed (0)
  2. src/math/cmplx/conj.go

    // Copyright 2010 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package cmplx
    
    // Conj returns the complex conjugate of x.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 292 bytes
    - Viewed (0)
  3. test/fixedbugs/bug315.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Issue 1368.
    
    package main
    
    func main() {
    	a := complex(2, 2)
    	a /= 2
    }
    
    /*
    bug315.go:13: internal compiler error: optoas: no entry DIV-complex
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 18 21:15:42 UTC 2012
    - 321 bytes
    - Viewed (0)
  4. pkg/registry/rbac/validation/policy_compact_test.go

    		},
    
    		"complex, empty": {
    			Rule:     rbacv1.PolicyRule{},
    			Simple:   false,
    			Resource: simpleResource{},
    		},
    		"complex, no group": {
    			Rule:     rbacv1.PolicyRule{Verbs: []string{"get"}, APIGroups: []string{}, Resources: []string{"builds"}},
    			Simple:   false,
    			Resource: simpleResource{},
    		},
    		"complex, multi group": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 02 16:51:16 UTC 2020
    - 9.5K bytes
    - Viewed (0)
  5. test/fixedbugs/bug466.dir/a.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package a
    
    const N = 2+3i
    
    func Func() []complex128 {
    	return []complex128{1, complex(2, 3), complex(4, 5)}
    }
    
    func Mul(z complex128) complex128 {
    	return z * (3 + 4i)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 330 bytes
    - Viewed (0)
  6. test/fixedbugs/bug307.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Valid program, gccgo reported an error.
    // bug307.go:14:6: error: complex arguments must have identical types
    
    package main
    
    func main() {
    	var f float64
    	_ = complex(1/f, 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:49:59 UTC 2012
    - 352 bytes
    - Viewed (0)
  7. test/fixedbugs/issue4654.go

    	var x []int
    	defer append(x, 1) // ERROR "defer discards result of append|is not used"
    	defer cap(x) // ERROR "defer discards result of cap|is not used"
    	defer complex(1, 2) // ERROR "defer discards result of complex|is not used"
    	defer complex(f, 1) // ERROR "defer discards result of complex|is not used"
    	defer imag(1i) // ERROR "defer discards result of imag|is not used"
    	defer imag(c) // ERROR "defer discards result of imag|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)
  8. src/debug/dwarf/testdata/typedef.c

    gcc -gdwarf-4 -m64 -c typedef.c -o typedef.macho4
    */
    #include <complex.h>
    
    typedef volatile int* t_ptr_volatile_int;
    typedef const char *t_ptr_const_char;
    typedef long t_long;
    typedef unsigned short t_ushort;
    typedef int t_func_int_of_float_double(float, double);
    typedef int (*t_ptr_func_int_of_float_double)(float, double);
    typedef int (*t_ptr_func_int_of_float_complex)(float complex);
    typedef int (*t_ptr_func_int_of_double_complex)(double complex);
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 02 19:56:24 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  9. src/math/cmplx/tan.go

    		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 {
    		d = tanSeries(x)
    	}
    	if d == 0 {
    		return Inf()
    	}
    	return complex(math.Sin(2*real(x))/d, math.Sinh(2*imag(x))/d)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 01 03:16:37 UTC 2020
    - 8.5K bytes
    - Viewed (0)
  10. src/go/types/builtins_test.go

    	{"complex", `_ = complex(1, 0)`, `invalid type`}, // constant
    	{"complex", `var re float32; _ = complex(re, 1.0)`, `func(float32, float32) complex64`},
    	{"complex", `var im float64; _ = complex(1, im)`, `func(float64, float64) complex128`},
    	{"complex", `type F32 float32; var re, im F32; _ = complex(re, im)`, `func(p.F32, p.F32) complex64`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 10.9K bytes
    - Viewed (0)
Back to top