- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 252 for Complex128 (0.15 sec)
-
src/math/cmplx/sqrt.go
// IEEE -10,+10 1,000,000 2.9e-16 6.1e-17 // 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 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 01 03:16:37 UTC 2020 - 3K bytes - Viewed (0) -
src/testing/quick/quick_test.go
func fComplex64(a complex64) complex64 { return a } type TestComplex64Alias complex64 func fComplex64Alias(a TestComplex64Alias) TestComplex64Alias { return a } func fComplex128(a complex128) complex128 { return a } type TestComplex128Alias complex128 func fComplex128Alias(a TestComplex128Alias) TestComplex128Alias { return a } func fInt16(a int16) int16 { return a } type TestInt16Alias int16
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 12:54:00 UTC 2019 - 9K bytes - Viewed (0) -
src/encoding/gob/dec_helpers.go
func decComplex128Slice(state *decoderState, v reflect.Value, length int, ovfl error) bool { slice, ok := v.Interface().([]complex128) if !ok { // It is kind complex128 but not type complex128. TODO: We can handle this unsafely. return false } for i := 0; i < length; i++ { if state.b.Len() == 0 { errorf("decoding complex128 array or slice: length exceeds input size (%d elements)", length) } if i >= len(slice) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 24 19:28:46 UTC 2023 - 15.4K bytes - Viewed (0) -
test/fixedbugs/issue7867.go
"bool", "int", "rune", "*int", "uintptr", "float32", "float64", "chan struct{}", "map[string]struct{}", "func()", "func(string)error", // These types caused compilation failures "complex64", "complex128", "struct{}", "struct{n int}", "struct{e error}", "struct{m map[string]string}", "string", "[4]byte", "[]byte", "interface{}", "error", } for i, typ := range types { fmt.Printf(tpl, i, typ) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 825 bytes - Viewed (0) -
src/cmd/compile/internal/syntax/testdata/smoketest.go
// in expressions var _ = T[int]{} // in embedded types type _ struct{ T[int] } // interfaces type _ interface { m() ~int } type _ interface { ~int | ~float | ~string ~complex128 underlying(underlying underlying) underlying } type _ interface { T T[int] } // tricky cases func _(T[P], T[P1, P2]) func _(a [N]T) type _ struct { T[P] T[P1, P2] f[N]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 30 18:02:31 UTC 2022 - 1.2K bytes - Viewed (0) -
src/internal/types/testdata/fixedbugs/issue59190.go
// Copyright 2023 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 p import "unsafe" type E [1 << 30]complex128 var a [1 << 30]E var _ = unsafe.Sizeof(a /* ERROR "too large" */ ) var s struct { _ [1 << 30]E x int } var _ = unsafe.Offsetof(s /* ERROR "too large" */ .x)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 27 16:52:49 UTC 2023 - 684 bytes - Viewed (0) -
test/cmplxdivide.go
// Driver for complex division table defined in cmplxdivide1.go // For details, see the comment at the top of cmplxdivide.c. 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
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 15 22:45:17 UTC 2017 - 868 bytes - Viewed (0) -
src/strconv/atoc_test.go
} if complex128(complex64(test.out)) == test.out { got, err := ParseComplex(test.in, 64) if !reflect.DeepEqual(err, test.err) { t.Fatalf("ParseComplex(%q, 64) = %v, %v; want %v, %v", test.in, got, err, test.out, test.err) } got64 := complex64(got) if complex128(got64) != test.out {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 03 23:05:51 UTC 2020 - 6.8K bytes - Viewed (0) -
src/cmd/compile/internal/types2/basic.go
// predeclared types Bool Int Int8 Int16 Int32 Int64 Uint Uint8 Uint16 Uint32 Uint64 Uintptr Float32 Float64 Complex64 Complex128 String UnsafePointer // types for untyped values UntypedBool UntypedInt UntypedRune UntypedFloat UntypedComplex UntypedString UntypedNil // aliases Byte = Uint8
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 01 22:17:50 UTC 2021 - 1.5K bytes - Viewed (0) -
test/const.go
staticC64 = complex64(x30) + 1 - x30 staticC128 = complex128(x60) + 1 - x60 ) dynamicF32 := float32(x30) dynamicF32 += 1 dynamicF32 -= x30 dynamicF64 := float64(x60) dynamicF64 += 1 dynamicF64 -= x60 dynamicC64 := complex64(x30) dynamicC64 += 1 dynamicC64 -= x30 dynamicC128 := complex128(x60) dynamicC128 += 1 dynamicC128 -= x60
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 26 23:54:29 UTC 2019 - 4.8K bytes - Viewed (0)