- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,873 for complex1 (0.11 sec)
-
src/internal/types/testdata/check/builtins0.go
// untyped constants const _ int = complex(1, 0) const _ float32 = complex(1, 0) const _ complex64 = complex(1, 0) const _ complex128 = complex(1, 0) const _ = complex(0i, 0i) const _ = complex(0i, 0) const _ int = 1.0 + complex(1, 0i) const _ int = complex /* ERROR "int" */ (1.1, 0) const _ float32 = complex /* ERROR "float32" */ (1, 2) // untyped values var s uint
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 29.3K bytes - Viewed (0) -
src/runtime/complex.go
func inf2one(f float64) float64 { g := 0.0 if isInf(f) { g = 1.0 } return copysign(g, f) } func complex128div(n complex128, m complex128) complex128 { var e, f float64 // complex(e, f) = n/m // Algorithm for robust complex division as described in // Robert L. Smith: Algorithm 116: Complex division. Commun. ACM 5(8): 435 (1962). if abs(real(m)) >= abs(imag(m)) { ratio := imag(m) / real(m)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 15 22:45:17 UTC 2017 - 1.6K bytes - Viewed (0) -
test/fixedbugs/issue11590.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 11 02:26:58 UTC 2022 - 419 bytes - Viewed (0) -
test/typeparam/absdiffimp2.dir/a.go
type orderedNumeric interface { ~int | ~int8 | ~int16 | ~int32 | ~int64 | ~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr | ~float32 | ~float64 } // Complex matches the two complex types, which do not have a < operator. type Complex interface { ~complex64 | ~complex128 } // orderedAbs is a helper type that defines an Abs method for // a struct containing an ordered numeric type. type orderedAbs[T orderedNumeric] struct {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 09 21:26:42 UTC 2022 - 2.8K bytes - Viewed (0) -
test/typeparam/absdiffimp.dir/a.go
type orderedNumeric interface { ~int | ~int8 | ~int16 | ~int32 | ~int64 | ~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr | ~float32 | ~float64 } // Complex matches the two complex types, which do not have a < operator. type Complex interface { ~complex64 | ~complex128 } // For now, a lone type parameter is not permitted as RHS in a type declaration (issue #45639). // // orderedAbs is a helper type that defines an Abs method for
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 00:11:24 UTC 2021 - 2.1K bytes - Viewed (0) -
maven-model-builder/src/test/resources/poms/factory/complex.xml
Christian Wansart <******@****.***> 1573139799 +0100
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Thu Nov 07 15:16:39 UTC 2019 - 1.5K bytes - Viewed (0) -
test/rename.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 1.5K bytes - Viewed (0) -
test/zerodivide.go
// All complex divide by zero should not error. ErrorTest{"complex 0/0", func() { use(c / d) }, ""}, ErrorTest{"complex64 0/0", func() { use(c64 / d64) }, ""}, ErrorTest{"complex128 0/0", func() { use(c128 / d128) }, ""}, ErrorTest{"complex 1/0", func() { use(e / d) }, ""}, ErrorTest{"complex64 1/0", func() { use(e64 / d64) }, ""}, ErrorTest{"complex128 1/0", func() { use(e128 / d128) }, ""}, }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 06 15:53:04 UTC 2021 - 5.7K bytes - Viewed (0) -
src/cmd/compile/internal/test/testdata/fp_test.go
func cx128diff_ssa(a, b complex128) complex128 { return a - b } //go:noinline func cx128prod_ssa(a, b complex128) complex128 { return a * b } //go:noinline func cx128quot_ssa(a, b complex128) complex128 { return a / b } //go:noinline func cx128neg_ssa(a complex128) complex128 { return -a } //go:noinline func cx128real_ssa(a complex128) float64 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 05 17:54:15 UTC 2022 - 35K bytes - Viewed (0) -
test/map.go
} } { var ( pz = complex64(0) nz = complex(0, math.Float32frombits(1<<31)) nana = complex(5, float32(math.NaN())) nanb = complex(5, math.Float32frombits(math.Float32bits(float32(math.NaN()))^2)) ) m := map[complex64]string{ pz: "+0", nana: "NaN", nanb: "NaN", } if m[nz] != "+0" { panic(fmt.Sprintln("complex64 map does not treat -0 and +0 as equal for read"))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 06 21:02:55 UTC 2014 - 14.9K bytes - Viewed (0)