- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 252 for fComplex128 (0.17 sec)
-
test/typeparam/absdiffimp2.dir/a.go
package a import ( "math" ) type Numeric interface { ~int | ~int8 | ~int16 | ~int32 | ~int64 | ~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr | ~float32 | ~float64 | ~complex64 | ~complex128 } // numericAbs matches a struct containing a numeric type that has an Abs method. type numericAbs[T Numeric] interface { ~struct{ Value_ T } Abs() T Value() T }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 09 21:26:42 UTC 2022 - 2.8K bytes - Viewed (0) -
src/math/cmplx/isinf.go
package cmplx import "math" // IsInf reports whether either real(x) or imag(x) is an infinity. func IsInf(x complex128) bool { if math.IsInf(real(x), 0) || math.IsInf(imag(x), 0) { return true } return false } // Inf returns a complex infinity, complex(+Inf, +Inf). func Inf() complex128 { inf := math.Inf(1) return complex(inf, inf)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 02 22:47:58 UTC 2018 - 506 bytes - Viewed (0) -
src/math/cmplx/isnan.go
// 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. func NaN() complex128 { nan := math.NaN() return complex(nan, nan)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 05 17:52:29 UTC 2022 - 598 bytes - Viewed (0) -
test/shift1.go
var z complex128 z = (1 << s) << (1 << s) // ERROR "non-integer|type complex128" z = (1 << s) << (1. << s) // ERROR "non-integer|type complex128" z = (1 << s) << (1.1 << s) // ERROR "invalid|truncated|complex128" z = (1. << s) << (1 << s) // ERROR "non-integer|type complex128|must be integer" z = (1. << s) << (1. << s) // ERROR "non-integer|type complex128|must be integer"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 03 16:24:32 UTC 2021 - 9.4K bytes - Viewed (0) -
test/fixedbugs/issue41736.go
// license that can be found in the LICENSE file. package p type I struct { x int64 } type F struct { x float64 } type C struct { x *complex128 } type D struct { x complex64 } type A [1]*complex128 //go:noinline func (i I) X() C { cx := complex(0, float64(i.x)) return C{&cx} } //go:noinline func (f F) X() C { cx := complex(f.x, 0) return C{&cx}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 06 15:37:42 UTC 2020 - 1.3K bytes - Viewed (0) -
src/testing/allocs_test.go
import "testing" var global any var allocsPerRunTests = []struct { name string fn func() allocs float64 }{ {"alloc *byte", func() { global = new(*byte) }, 1}, {"alloc complex128", func() { global = new(complex128) }, 1}, {"alloc float64", func() { global = new(float64) }, 1}, {"alloc int32", func() { global = new(int32) }, 1}, {"alloc byte", func() { global = new(byte) }, 1}, }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 817 bytes - Viewed (0) -
src/go/types/typestring_test.go
// structs dup("struct{}"), dup("struct{x int}"), {`struct { x, y int z float32 "foo" }`, `struct{x int; y int; z float32 "foo"}`}, {`struct { string elems []complex128 }`, `struct{string; elems []complex128}`}, // pointers dup("*int"), dup("***struct{}"), dup("*struct{a int; b float32}"), // functions dup("func()"), dup("func(x int)"),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 28 17:58:07 UTC 2023 - 3.9K bytes - Viewed (0) -
test/gcgort.go
} }, }, modifier{ name: "complex128", t: func() { c := complex128(complex(float64(1.01), float64(1.01))) for i := 0; i < mods; i++ { c = complex(real(c)*1.01, imag(c)*1.01) runtime.Gosched() } }, pointerT: func() { a := func() *complex128 { return new(complex128) }() *a = complex128(complex(float64(1.01), float64(1.01))) for i := 0; i < mods; i++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 08 21:15:48 UTC 2018 - 34.5K bytes - Viewed (0) -
src/math/cmplx/tan.go
// IEEE -10,+10 30000 7.2e-16 1.2e-16 // Also tested by ctan * ccot = 1 and catan(ctan(z)) = z. // Tan returns the tangent of x. 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)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 01 03:16:37 UTC 2020 - 8.5K bytes - Viewed (0) -
src/internal/types/testdata/check/builtins0.go
var _ complex128 = complex /* ERRORx `cannot use .* in variable declaration` */ (f32, f32) var _ complex128 = complex(f64, f64) // 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)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 29.3K bytes - Viewed (0)