- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 150 for fComplex128 (0.18 sec)
-
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/cmd/compile/internal/types/universe.go
{"int64", TINT64}, {"uint8", TUINT8}, {"uint16", TUINT16}, {"uint32", TUINT32}, {"uint64", TUINT64}, {"float32", TFLOAT32}, {"float64", TFLOAT64}, {"complex64", TCOMPLEX64}, {"complex128", TCOMPLEX128}, {"bool", TBOOL}, {"string", TSTRING}, } var typedefs = [...]struct { name string etype Kind sameas32 Kind sameas64 Kind }{ {"int", TINT, TINT32, TINT64},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jan 26 21:56:49 UTC 2023 - 4K bytes - Viewed (0) -
test/append.go
{"complex128 a", append([]complex128{}), []complex128{}}, {"complex128 b", append([]complex128{}, 0), []complex128{0}}, {"complex128 c", append([]complex128{}, 0, 1, 2, 3), []complex128{0, 1, 2, 3}}, {"complex128 d", append([]complex128{0, 1, 2}), []complex128{0, 1, 2}}, {"complex128 e", append([]complex128{0, 1, 2}, 3), []complex128{0, 1, 2, 3}},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun May 06 04:28:23 UTC 2018 - 9.1K bytes - Viewed (0) -
test/ken/cplx5.go
package main var a [12]complex128 var s []complex128 var c chan complex128 var f struct { c complex128 } var m map[complex128]complex128 func main() { // array of complex128 for i := 0; i < len(a); i++ { a[i] = complex(float64(i), float64(-i)) } if a[5] != 5-5i { panic(a[5]) } // slice of complex128 s = make([]complex128, len(a)) for i := 0; i < len(s); i++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 24 05:24:24 UTC 2012 - 1.1K bytes - Viewed (0) -
test/fixedbugs/bug466.dir/a.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 330 bytes - Viewed (0) -
test/cmplx.go
// Does not compile. package main type ( Float32 float32 Float64 float64 Complex64 complex64 Complex128 complex128 ) var ( f32 float32 f64 float64 F32 Float32 F64 Float64 c64 complex64 c128 complex128 C64 Complex64 C128 Complex128 ) func F1() int { return 1 } func F3() (int, int, int) { return 1, 2, 3 } func main() { // ok
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 14 21:00:20 UTC 2019 - 1.4K bytes - Viewed (0) -
src/internal/types/testdata/check/const1.go
) const ( _ complex128 = - /* ERROR "overflow" */ (maxFloat64 + delta64) _ complex128 = -maxFloat64 _ complex128 = maxFloat64 _ complex128 = maxFloat64 /* ERROR "overflow" */ + delta64 _ = complex128(- /* ERROR "cannot convert" */ (maxFloat64 + delta64)) _ = complex128(-maxFloat64) _ = complex128(maxFloat64) _ = complex128(maxFloat64 /* ERROR "cannot convert" */ + delta64) )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 31 16:11:16 UTC 2023 - 8.5K bytes - Viewed (0) -
test/fixedbugs/issue38916.go
// Copyright 2020 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 func f(b bool, c complex128) func(complex128) complex128 { return func(p complex128) complex128 { b = (p+1i == 0) && b return (p + 2i) * (p + 3i - c) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 14 08:07:52 UTC 2020 - 343 bytes - Viewed (0) -
src/cmd/compile/internal/test/truncconst_test.go
t.Errorf("real(r52-1) = %g, want %g", got, f52want) } if got := real(complex128(r52) - 1); got != f52want { t.Errorf("real(complex128(r52)-1) = %g, want %g", got, f52want) } if got := real(r53 - 1); got != f53want { t.Errorf("real(r53-1) = %g, want %g", got, f53want) } if got := real(complex128(r53) - 1); got != 0 { t.Errorf("real(complex128(r53)-1) = %g, want 0", got) } const i52 = complex(0, 1+1.0/(1<<52))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 23 06:40:04 UTC 2020 - 1.8K bytes - Viewed (0) -
test/fixedbugs/bug401.go
// license that can be found in the LICENSE file. // Issue 2582 package main type T struct{} //go:noinline func (T) cplx() complex128 { return complex(1, 0) } func (T) cplx2() complex128 { return complex(0, 1) } type I interface { cplx() complex128 } func main() { var t T if v := real(t.cplx()); v != 1 { panic("not-inlined complex call failed") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 740 bytes - Viewed (0)