- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 252 for Complex128 (0.16 sec)
-
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/math/cmplx/cmath_test.go
complex(inf, nan)}, {NaN(), NaN()}, } var vcPolarSC = []complex128{ NaN(), } var polarSC = []ff{ {math.NaN(), math.NaN()}, } var vcPowSC = [][2]complex128{ {NaN(), NaN()}, {0, NaN()}, } var powSC = []complex128{ NaN(), NaN(), } var sinSC = []struct { in, want complex128 }{ // Derived from Sin(z) = -i * Sinh(i * z), G.6 #7 {complex(zero, zero),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 01 03:16:37 UTC 2020 - 48.1K 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) -
src/math/cmplx/sin.go
// DEC -10,+10 8400 5.3e-17 1.3e-17 // IEEE -10,+10 30000 3.8e-16 1.0e-16 // Also tested by csin(casin(z)) = z. // Sin returns the sine of x. func Sin(x complex128) complex128 { switch re, im := real(x), imag(x); { case im == 0 && (math.IsInf(re, 0) || math.IsNaN(re)): return complex(math.NaN(), im) case math.IsInf(im, 0): switch { case re == 0: return x
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 18 17:59:44 UTC 2022 - 4.8K bytes - Viewed (0)