3 // Copyright 2010 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
7 // Driver for complex division table defined in cmplxdivide1.go
24 var negzero = math.Copysign(0, -1)
26 func calike(a, b complex128) bool {
28 case cmplx.IsInf(a) && cmplx.IsInf(b):
30 case cmplx.IsNaN(a) && cmplx.IsNaN(b):
38 for _, t := range tests {
40 if !calike(x, t.out) {
45 fmt.Printf("%v/%v: expected %v error; got %v\n", t.f, t.g, t.out, x)
49 panic("cmplxdivide failed.")