1
0
mirror of https://github.com/golang/go synced 2024-11-27 02:01:23 -07:00
go/test/cmplxdivide1.go
Russ Cox f2b5a07453 delete float, complex - code changes
also:
	cmplx -> complex
	float64(1.0) -> 1.0
	float64(1) -> 1.0

R=gri, r, gri1, r2
CC=golang-dev
https://golang.org/cl/3991043
2011-01-19 23:09:00 -05:00

2407 lines
147 KiB
Go

// # generated by cmplxdivide.c
package main
var tests = []Test{
Test{complex(0, 0), complex(0, 0), complex(-nan, -nan)},
Test{complex(0, 0), complex(0, 1), complex(0, 0)},
Test{complex(0, 0), complex(0, -1), complex(negzero, 0)},
Test{complex(0, 0), complex(0, 2), complex(0, 0)},
Test{complex(0, 0), complex(nan, nan), complex(nan, nan)},
Test{complex(0, 0), complex(-nan, inf), complex(0, negzero)},
Test{complex(0, 0), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(0, 0), complex(1, 0), complex(0, 0)},
Test{complex(0, 0), complex(1, 1), complex(0, 0)},
Test{complex(0, 0), complex(1, -1), complex(0, 0)},
Test{complex(0, 0), complex(1, 2), complex(0, 0)},
Test{complex(0, 0), complex(nan, nan), complex(nan, nan)},
Test{complex(0, 0), complex(-nan, inf), complex(0, negzero)},
Test{complex(0, 0), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(0, 0), complex(-1, 0), complex(negzero, negzero)},
Test{complex(0, 0), complex(-1, 1), complex(negzero, negzero)},
Test{complex(0, 0), complex(-1, -1), complex(negzero, negzero)},
Test{complex(0, 0), complex(-1, 2), complex(0, negzero)},
Test{complex(0, 0), complex(nan, nan), complex(nan, nan)},
Test{complex(0, 0), complex(-nan, inf), complex(0, negzero)},
Test{complex(0, 0), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(0, 0), complex(2, 0), complex(0, 0)},
Test{complex(0, 0), complex(2, 1), complex(0, 0)},
Test{complex(0, 0), complex(2, -1), complex(0, 0)},
Test{complex(0, 0), complex(2, 2), complex(0, 0)},
Test{complex(0, 0), complex(nan, nan), complex(nan, nan)},
Test{complex(0, 0), complex(-nan, inf), complex(0, negzero)},
Test{complex(0, 0), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(0, 0), complex(nan, 0), complex(nan, nan)},
Test{complex(0, 0), complex(nan, 1), complex(nan, nan)},
Test{complex(0, 0), complex(nan, -1), complex(nan, nan)},
Test{complex(0, 0), complex(nan, 2), complex(nan, nan)},
Test{complex(0, 0), complex(nan, nan), complex(nan, nan)},
Test{complex(0, 0), complex(-nan, inf), complex(0, negzero)},
Test{complex(0, 0), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(0, 0), complex(inf, 0), complex(0, 0)},
Test{complex(0, 0), complex(inf, 1), complex(0, 0)},
Test{complex(0, 0), complex(inf, -1), complex(0, 0)},
Test{complex(0, 0), complex(inf, 2), complex(0, 0)},
Test{complex(0, 0), complex(nan, nan), complex(nan, nan)},
Test{complex(0, 0), complex(-nan, inf), complex(0, negzero)},
Test{complex(0, 0), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(0, 0), complex(-inf, 0), complex(negzero, negzero)},
Test{complex(0, 0), complex(-inf, 1), complex(negzero, negzero)},
Test{complex(0, 0), complex(-inf, -1), complex(negzero, negzero)},
Test{complex(0, 0), complex(-inf, 2), complex(negzero, negzero)},
Test{complex(0, 0), complex(nan, nan), complex(nan, nan)},
Test{complex(0, 0), complex(-nan, inf), complex(0, negzero)},
Test{complex(0, 0), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(0, 1), complex(0, 0), complex(-nan, inf)},
Test{complex(0, 1), complex(0, 1), complex(1, 0)},
Test{complex(0, 1), complex(0, -1), complex(-1, 0)},
Test{complex(0, 1), complex(0, 2), complex(0.5, 0)},
Test{complex(0, 1), complex(nan, nan), complex(nan, nan)},
Test{complex(0, 1), complex(-nan, inf), complex(0, negzero)},
Test{complex(0, 1), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(0, 1), complex(1, 0), complex(0, 1)},
Test{complex(0, 1), complex(1, 1), complex(0.5, 0.5)},
Test{complex(0, 1), complex(1, -1), complex(-0.5, 0.5)},
Test{complex(0, 1), complex(1, 2), complex(0.4, 0.2)},
Test{complex(0, 1), complex(nan, nan), complex(nan, nan)},
Test{complex(0, 1), complex(-nan, inf), complex(0, negzero)},
Test{complex(0, 1), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(0, 1), complex(-1, 0), complex(negzero, -1)},
Test{complex(0, 1), complex(-1, 1), complex(0.5, -0.5)},
Test{complex(0, 1), complex(-1, -1), complex(-0.5, -0.5)},
Test{complex(0, 1), complex(-1, 2), complex(0.4, -0.2)},
Test{complex(0, 1), complex(nan, nan), complex(nan, nan)},
Test{complex(0, 1), complex(-nan, inf), complex(0, negzero)},
Test{complex(0, 1), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(0, 1), complex(2, 0), complex(0, 0.5)},
Test{complex(0, 1), complex(2, 1), complex(0.2, 0.4)},
Test{complex(0, 1), complex(2, -1), complex(-0.2, 0.4)},
Test{complex(0, 1), complex(2, 2), complex(0.25, 0.25)},
Test{complex(0, 1), complex(nan, nan), complex(nan, nan)},
Test{complex(0, 1), complex(-nan, inf), complex(0, negzero)},
Test{complex(0, 1), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(0, 1), complex(nan, 0), complex(nan, nan)},
Test{complex(0, 1), complex(nan, 1), complex(nan, nan)},
Test{complex(0, 1), complex(nan, -1), complex(nan, nan)},
Test{complex(0, 1), complex(nan, 2), complex(nan, nan)},
Test{complex(0, 1), complex(nan, nan), complex(nan, nan)},
Test{complex(0, 1), complex(-nan, inf), complex(0, negzero)},
Test{complex(0, 1), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(0, 1), complex(inf, 0), complex(0, 0)},
Test{complex(0, 1), complex(inf, 1), complex(0, 0)},
Test{complex(0, 1), complex(inf, -1), complex(0, 0)},
Test{complex(0, 1), complex(inf, 2), complex(0, 0)},
Test{complex(0, 1), complex(nan, nan), complex(nan, nan)},
Test{complex(0, 1), complex(-nan, inf), complex(0, negzero)},
Test{complex(0, 1), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(0, 1), complex(-inf, 0), complex(negzero, negzero)},
Test{complex(0, 1), complex(-inf, 1), complex(negzero, negzero)},
Test{complex(0, 1), complex(-inf, -1), complex(negzero, negzero)},
Test{complex(0, 1), complex(-inf, 2), complex(negzero, negzero)},
Test{complex(0, 1), complex(nan, nan), complex(nan, nan)},
Test{complex(0, 1), complex(-nan, inf), complex(0, negzero)},
Test{complex(0, 1), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(0, -1), complex(0, 0), complex(-nan, -inf)},
Test{complex(0, -1), complex(0, 1), complex(-1, negzero)},
Test{complex(0, -1), complex(0, -1), complex(1, negzero)},
Test{complex(0, -1), complex(0, 2), complex(-0.5, negzero)},
Test{complex(0, -1), complex(nan, nan), complex(nan, nan)},
Test{complex(0, -1), complex(-nan, inf), complex(negzero, 0)},
Test{complex(0, -1), complex(-nan, -inf), complex(0, 0)},
Test{complex(0, -1), complex(1, 0), complex(0, -1)},
Test{complex(0, -1), complex(1, 1), complex(-0.5, -0.5)},
Test{complex(0, -1), complex(1, -1), complex(0.5, -0.5)},
Test{complex(0, -1), complex(1, 2), complex(-0.4, -0.2)},
Test{complex(0, -1), complex(nan, nan), complex(nan, nan)},
Test{complex(0, -1), complex(-nan, inf), complex(negzero, 0)},
Test{complex(0, -1), complex(-nan, -inf), complex(0, 0)},
Test{complex(0, -1), complex(-1, 0), complex(negzero, 1)},
Test{complex(0, -1), complex(-1, 1), complex(-0.5, 0.5)},
Test{complex(0, -1), complex(-1, -1), complex(0.5, 0.5)},
Test{complex(0, -1), complex(-1, 2), complex(-0.4, 0.2)},
Test{complex(0, -1), complex(nan, nan), complex(nan, nan)},
Test{complex(0, -1), complex(-nan, inf), complex(negzero, 0)},
Test{complex(0, -1), complex(-nan, -inf), complex(0, 0)},
Test{complex(0, -1), complex(2, 0), complex(0, -0.5)},
Test{complex(0, -1), complex(2, 1), complex(-0.2, -0.4)},
Test{complex(0, -1), complex(2, -1), complex(0.2, -0.4)},
Test{complex(0, -1), complex(2, 2), complex(-0.25, -0.25)},
Test{complex(0, -1), complex(nan, nan), complex(nan, nan)},
Test{complex(0, -1), complex(-nan, inf), complex(negzero, 0)},
Test{complex(0, -1), complex(-nan, -inf), complex(0, 0)},
Test{complex(0, -1), complex(nan, 0), complex(nan, nan)},
Test{complex(0, -1), complex(nan, 1), complex(nan, nan)},
Test{complex(0, -1), complex(nan, -1), complex(nan, nan)},
Test{complex(0, -1), complex(nan, 2), complex(nan, nan)},
Test{complex(0, -1), complex(nan, nan), complex(nan, nan)},
Test{complex(0, -1), complex(-nan, inf), complex(negzero, 0)},
Test{complex(0, -1), complex(-nan, -inf), complex(0, 0)},
Test{complex(0, -1), complex(inf, 0), complex(0, negzero)},
Test{complex(0, -1), complex(inf, 1), complex(0, negzero)},
Test{complex(0, -1), complex(inf, -1), complex(0, negzero)},
Test{complex(0, -1), complex(inf, 2), complex(0, negzero)},
Test{complex(0, -1), complex(nan, nan), complex(nan, nan)},
Test{complex(0, -1), complex(-nan, inf), complex(negzero, 0)},
Test{complex(0, -1), complex(-nan, -inf), complex(0, 0)},
Test{complex(0, -1), complex(-inf, 0), complex(negzero, 0)},
Test{complex(0, -1), complex(-inf, 1), complex(negzero, 0)},
Test{complex(0, -1), complex(-inf, -1), complex(negzero, 0)},
Test{complex(0, -1), complex(-inf, 2), complex(negzero, 0)},
Test{complex(0, -1), complex(nan, nan), complex(nan, nan)},
Test{complex(0, -1), complex(-nan, inf), complex(negzero, 0)},
Test{complex(0, -1), complex(-nan, -inf), complex(0, 0)},
Test{complex(0, 2), complex(0, 0), complex(-nan, inf)},
Test{complex(0, 2), complex(0, 1), complex(2, 0)},
Test{complex(0, 2), complex(0, -1), complex(-2, 0)},
Test{complex(0, 2), complex(0, 2), complex(1, 0)},
Test{complex(0, 2), complex(nan, nan), complex(nan, nan)},
Test{complex(0, 2), complex(-nan, inf), complex(0, negzero)},
Test{complex(0, 2), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(0, 2), complex(1, 0), complex(0, 2)},
Test{complex(0, 2), complex(1, 1), complex(1, 1)},
Test{complex(0, 2), complex(1, -1), complex(-1, 1)},
Test{complex(0, 2), complex(1, 2), complex(0.8, 0.4)},
Test{complex(0, 2), complex(nan, nan), complex(nan, nan)},
Test{complex(0, 2), complex(-nan, inf), complex(0, negzero)},
Test{complex(0, 2), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(0, 2), complex(-1, 0), complex(negzero, -2)},
Test{complex(0, 2), complex(-1, 1), complex(1, -1)},
Test{complex(0, 2), complex(-1, -1), complex(-1, -1)},
Test{complex(0, 2), complex(-1, 2), complex(0.8, -0.4)},
Test{complex(0, 2), complex(nan, nan), complex(nan, nan)},
Test{complex(0, 2), complex(-nan, inf), complex(0, negzero)},
Test{complex(0, 2), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(0, 2), complex(2, 0), complex(0, 1)},
Test{complex(0, 2), complex(2, 1), complex(0.4, 0.8)},
Test{complex(0, 2), complex(2, -1), complex(-0.4, 0.8)},
Test{complex(0, 2), complex(2, 2), complex(0.5, 0.5)},
Test{complex(0, 2), complex(nan, nan), complex(nan, nan)},
Test{complex(0, 2), complex(-nan, inf), complex(0, negzero)},
Test{complex(0, 2), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(0, 2), complex(nan, 0), complex(nan, nan)},
Test{complex(0, 2), complex(nan, 1), complex(nan, nan)},
Test{complex(0, 2), complex(nan, -1), complex(nan, nan)},
Test{complex(0, 2), complex(nan, 2), complex(nan, nan)},
Test{complex(0, 2), complex(nan, nan), complex(nan, nan)},
Test{complex(0, 2), complex(-nan, inf), complex(0, negzero)},
Test{complex(0, 2), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(0, 2), complex(inf, 0), complex(0, 0)},
Test{complex(0, 2), complex(inf, 1), complex(0, 0)},
Test{complex(0, 2), complex(inf, -1), complex(0, 0)},
Test{complex(0, 2), complex(inf, 2), complex(0, 0)},
Test{complex(0, 2), complex(nan, nan), complex(nan, nan)},
Test{complex(0, 2), complex(-nan, inf), complex(0, negzero)},
Test{complex(0, 2), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(0, 2), complex(-inf, 0), complex(negzero, negzero)},
Test{complex(0, 2), complex(-inf, 1), complex(negzero, negzero)},
Test{complex(0, 2), complex(-inf, -1), complex(negzero, negzero)},
Test{complex(0, 2), complex(-inf, 2), complex(negzero, negzero)},
Test{complex(0, 2), complex(nan, nan), complex(nan, nan)},
Test{complex(0, 2), complex(-nan, inf), complex(0, negzero)},
Test{complex(0, 2), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(nan, nan), complex(0, 0), complex(nan, nan)},
Test{complex(nan, nan), complex(0, 1), complex(nan, nan)},
Test{complex(nan, nan), complex(0, -1), complex(nan, nan)},
Test{complex(nan, nan), complex(0, 2), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, -inf), complex(nan, nan)},
Test{complex(nan, nan), complex(1, 0), complex(nan, nan)},
Test{complex(nan, nan), complex(1, 1), complex(nan, nan)},
Test{complex(nan, nan), complex(1, -1), complex(nan, nan)},
Test{complex(nan, nan), complex(1, 2), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, -inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-1, 0), complex(nan, nan)},
Test{complex(nan, nan), complex(-1, 1), complex(nan, nan)},
Test{complex(nan, nan), complex(-1, -1), complex(nan, nan)},
Test{complex(nan, nan), complex(-1, 2), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, -inf), complex(nan, nan)},
Test{complex(nan, nan), complex(2, 0), complex(nan, nan)},
Test{complex(nan, nan), complex(2, 1), complex(nan, nan)},
Test{complex(nan, nan), complex(2, -1), complex(nan, nan)},
Test{complex(nan, nan), complex(2, 2), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, -inf), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, 0), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, 1), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, -1), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, 2), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, -inf), complex(nan, nan)},
Test{complex(nan, nan), complex(inf, 0), complex(nan, nan)},
Test{complex(nan, nan), complex(inf, 1), complex(nan, nan)},
Test{complex(nan, nan), complex(inf, -1), complex(nan, nan)},
Test{complex(nan, nan), complex(inf, 2), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, -inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-inf, 0), complex(nan, nan)},
Test{complex(nan, nan), complex(-inf, 1), complex(nan, nan)},
Test{complex(nan, nan), complex(-inf, -1), complex(nan, nan)},
Test{complex(nan, nan), complex(-inf, 2), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, -inf), complex(nan, nan)},
Test{complex(-nan, inf), complex(0, 0), complex(-nan, inf)},
Test{complex(-nan, inf), complex(0, 1), complex(inf, -nan)},
Test{complex(-nan, inf), complex(0, -1), complex(-inf, -nan)},
Test{complex(-nan, inf), complex(0, 2), complex(inf, -nan)},
Test{complex(-nan, inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(1, 0), complex(-nan, inf)},
Test{complex(-nan, inf), complex(1, 1), complex(inf, inf)},
Test{complex(-nan, inf), complex(1, -1), complex(-inf, inf)},
Test{complex(-nan, inf), complex(1, 2), complex(inf, inf)},
Test{complex(-nan, inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-1, 0), complex(-nan, -inf)},
Test{complex(-nan, inf), complex(-1, 1), complex(inf, -inf)},
Test{complex(-nan, inf), complex(-1, -1), complex(-inf, -inf)},
Test{complex(-nan, inf), complex(-1, 2), complex(inf, -inf)},
Test{complex(-nan, inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(2, 0), complex(-nan, inf)},
Test{complex(-nan, inf), complex(2, 1), complex(inf, inf)},
Test{complex(-nan, inf), complex(2, -1), complex(-inf, inf)},
Test{complex(-nan, inf), complex(2, 2), complex(inf, inf)},
Test{complex(-nan, inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(nan, 0), complex(nan, nan)},
Test{complex(-nan, inf), complex(nan, 1), complex(nan, nan)},
Test{complex(-nan, inf), complex(nan, -1), complex(nan, nan)},
Test{complex(-nan, inf), complex(nan, 2), complex(nan, nan)},
Test{complex(-nan, inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(inf, 0), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(inf, 1), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(inf, -1), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(inf, 2), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-inf, 0), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-inf, 1), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-inf, -1), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-inf, 2), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(0, 0), complex(-nan, -inf)},
Test{complex(-nan, -inf), complex(0, 1), complex(-inf, -nan)},
Test{complex(-nan, -inf), complex(0, -1), complex(inf, -nan)},
Test{complex(-nan, -inf), complex(0, 2), complex(-inf, -nan)},
Test{complex(-nan, -inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, -inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(1, 0), complex(-nan, -inf)},
Test{complex(-nan, -inf), complex(1, 1), complex(-inf, -inf)},
Test{complex(-nan, -inf), complex(1, -1), complex(inf, -inf)},
Test{complex(-nan, -inf), complex(1, 2), complex(-inf, -inf)},
Test{complex(-nan, -inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, -inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-1, 0), complex(-nan, inf)},
Test{complex(-nan, -inf), complex(-1, 1), complex(-inf, inf)},
Test{complex(-nan, -inf), complex(-1, -1), complex(inf, inf)},
Test{complex(-nan, -inf), complex(-1, 2), complex(-inf, inf)},
Test{complex(-nan, -inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, -inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(2, 0), complex(-nan, -inf)},
Test{complex(-nan, -inf), complex(2, 1), complex(-inf, -inf)},
Test{complex(-nan, -inf), complex(2, -1), complex(inf, -inf)},
Test{complex(-nan, -inf), complex(2, 2), complex(-inf, -inf)},
Test{complex(-nan, -inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, -inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(nan, 0), complex(nan, nan)},
Test{complex(-nan, -inf), complex(nan, 1), complex(nan, nan)},
Test{complex(-nan, -inf), complex(nan, -1), complex(nan, nan)},
Test{complex(-nan, -inf), complex(nan, 2), complex(nan, nan)},
Test{complex(-nan, -inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, -inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(inf, 0), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(inf, 1), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(inf, -1), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(inf, 2), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, -inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-inf, 0), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-inf, 1), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-inf, -1), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-inf, 2), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, -inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(1, 0), complex(0, 0), complex(inf, -nan)},
Test{complex(1, 0), complex(0, 1), complex(0, -1)},
Test{complex(1, 0), complex(0, -1), complex(negzero, 1)},
Test{complex(1, 0), complex(0, 2), complex(0, -0.5)},
Test{complex(1, 0), complex(nan, nan), complex(nan, nan)},
Test{complex(1, 0), complex(-nan, inf), complex(0, negzero)},
Test{complex(1, 0), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(1, 0), complex(1, 0), complex(1, 0)},
Test{complex(1, 0), complex(1, 1), complex(0.5, -0.5)},
Test{complex(1, 0), complex(1, -1), complex(0.5, 0.5)},
Test{complex(1, 0), complex(1, 2), complex(0.2, -0.4)},
Test{complex(1, 0), complex(nan, nan), complex(nan, nan)},
Test{complex(1, 0), complex(-nan, inf), complex(0, negzero)},
Test{complex(1, 0), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(1, 0), complex(-1, 0), complex(-1, negzero)},
Test{complex(1, 0), complex(-1, 1), complex(-0.5, -0.5)},
Test{complex(1, 0), complex(-1, -1), complex(-0.5, 0.5)},
Test{complex(1, 0), complex(-1, 2), complex(-0.2, -0.4)},
Test{complex(1, 0), complex(nan, nan), complex(nan, nan)},
Test{complex(1, 0), complex(-nan, inf), complex(0, negzero)},
Test{complex(1, 0), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(1, 0), complex(2, 0), complex(0.5, 0)},
Test{complex(1, 0), complex(2, 1), complex(0.4, -0.2)},
Test{complex(1, 0), complex(2, -1), complex(0.4, 0.2)},
Test{complex(1, 0), complex(2, 2), complex(0.25, -0.25)},
Test{complex(1, 0), complex(nan, nan), complex(nan, nan)},
Test{complex(1, 0), complex(-nan, inf), complex(0, negzero)},
Test{complex(1, 0), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(1, 0), complex(nan, 0), complex(nan, nan)},
Test{complex(1, 0), complex(nan, 1), complex(nan, nan)},
Test{complex(1, 0), complex(nan, -1), complex(nan, nan)},
Test{complex(1, 0), complex(nan, 2), complex(nan, nan)},
Test{complex(1, 0), complex(nan, nan), complex(nan, nan)},
Test{complex(1, 0), complex(-nan, inf), complex(0, negzero)},
Test{complex(1, 0), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(1, 0), complex(inf, 0), complex(0, 0)},
Test{complex(1, 0), complex(inf, 1), complex(0, 0)},
Test{complex(1, 0), complex(inf, -1), complex(0, 0)},
Test{complex(1, 0), complex(inf, 2), complex(0, 0)},
Test{complex(1, 0), complex(nan, nan), complex(nan, nan)},
Test{complex(1, 0), complex(-nan, inf), complex(0, negzero)},
Test{complex(1, 0), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(1, 0), complex(-inf, 0), complex(negzero, negzero)},
Test{complex(1, 0), complex(-inf, 1), complex(negzero, negzero)},
Test{complex(1, 0), complex(-inf, -1), complex(negzero, negzero)},
Test{complex(1, 0), complex(-inf, 2), complex(negzero, negzero)},
Test{complex(1, 0), complex(nan, nan), complex(nan, nan)},
Test{complex(1, 0), complex(-nan, inf), complex(0, negzero)},
Test{complex(1, 0), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(1, 1), complex(0, 0), complex(inf, inf)},
Test{complex(1, 1), complex(0, 1), complex(1, -1)},
Test{complex(1, 1), complex(0, -1), complex(-1, 1)},
Test{complex(1, 1), complex(0, 2), complex(0.5, -0.5)},
Test{complex(1, 1), complex(nan, nan), complex(nan, nan)},
Test{complex(1, 1), complex(-nan, inf), complex(0, negzero)},
Test{complex(1, 1), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(1, 1), complex(1, 0), complex(1, 1)},
Test{complex(1, 1), complex(1, 1), complex(1, 0)},
Test{complex(1, 1), complex(1, -1), complex(0, 1)},
Test{complex(1, 1), complex(1, 2), complex(0.6, -0.2)},
Test{complex(1, 1), complex(nan, nan), complex(nan, nan)},
Test{complex(1, 1), complex(-nan, inf), complex(0, negzero)},
Test{complex(1, 1), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(1, 1), complex(-1, 0), complex(-1, -1)},
Test{complex(1, 1), complex(-1, 1), complex(negzero, -1)},
Test{complex(1, 1), complex(-1, -1), complex(-1, negzero)},
Test{complex(1, 1), complex(-1, 2), complex(0.2, -0.6)},
Test{complex(1, 1), complex(nan, nan), complex(nan, nan)},
Test{complex(1, 1), complex(-nan, inf), complex(0, negzero)},
Test{complex(1, 1), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(1, 1), complex(2, 0), complex(0.5, 0.5)},
Test{complex(1, 1), complex(2, 1), complex(0.6, 0.2)},
Test{complex(1, 1), complex(2, -1), complex(0.2, 0.6)},
Test{complex(1, 1), complex(2, 2), complex(0.5, 0)},
Test{complex(1, 1), complex(nan, nan), complex(nan, nan)},
Test{complex(1, 1), complex(-nan, inf), complex(0, negzero)},
Test{complex(1, 1), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(1, 1), complex(nan, 0), complex(nan, nan)},
Test{complex(1, 1), complex(nan, 1), complex(nan, nan)},
Test{complex(1, 1), complex(nan, -1), complex(nan, nan)},
Test{complex(1, 1), complex(nan, 2), complex(nan, nan)},
Test{complex(1, 1), complex(nan, nan), complex(nan, nan)},
Test{complex(1, 1), complex(-nan, inf), complex(0, negzero)},
Test{complex(1, 1), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(1, 1), complex(inf, 0), complex(0, 0)},
Test{complex(1, 1), complex(inf, 1), complex(0, 0)},
Test{complex(1, 1), complex(inf, -1), complex(0, 0)},
Test{complex(1, 1), complex(inf, 2), complex(0, 0)},
Test{complex(1, 1), complex(nan, nan), complex(nan, nan)},
Test{complex(1, 1), complex(-nan, inf), complex(0, negzero)},
Test{complex(1, 1), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(1, 1), complex(-inf, 0), complex(negzero, negzero)},
Test{complex(1, 1), complex(-inf, 1), complex(negzero, negzero)},
Test{complex(1, 1), complex(-inf, -1), complex(negzero, negzero)},
Test{complex(1, 1), complex(-inf, 2), complex(negzero, negzero)},
Test{complex(1, 1), complex(nan, nan), complex(nan, nan)},
Test{complex(1, 1), complex(-nan, inf), complex(0, negzero)},
Test{complex(1, 1), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(1, -1), complex(0, 0), complex(inf, -inf)},
Test{complex(1, -1), complex(0, 1), complex(-1, -1)},
Test{complex(1, -1), complex(0, -1), complex(1, 1)},
Test{complex(1, -1), complex(0, 2), complex(-0.5, -0.5)},
Test{complex(1, -1), complex(nan, nan), complex(nan, nan)},
Test{complex(1, -1), complex(-nan, inf), complex(negzero, negzero)},
Test{complex(1, -1), complex(-nan, -inf), complex(0, 0)},
Test{complex(1, -1), complex(1, 0), complex(1, -1)},
Test{complex(1, -1), complex(1, 1), complex(0, -1)},
Test{complex(1, -1), complex(1, -1), complex(1, 0)},
Test{complex(1, -1), complex(1, 2), complex(-0.2, -0.6)},
Test{complex(1, -1), complex(nan, nan), complex(nan, nan)},
Test{complex(1, -1), complex(-nan, inf), complex(negzero, negzero)},
Test{complex(1, -1), complex(-nan, -inf), complex(0, 0)},
Test{complex(1, -1), complex(-1, 0), complex(-1, 1)},
Test{complex(1, -1), complex(-1, 1), complex(-1, negzero)},
Test{complex(1, -1), complex(-1, -1), complex(negzero, 1)},
Test{complex(1, -1), complex(-1, 2), complex(-0.6, -0.2)},
Test{complex(1, -1), complex(nan, nan), complex(nan, nan)},
Test{complex(1, -1), complex(-nan, inf), complex(negzero, negzero)},
Test{complex(1, -1), complex(-nan, -inf), complex(0, 0)},
Test{complex(1, -1), complex(2, 0), complex(0.5, -0.5)},
Test{complex(1, -1), complex(2, 1), complex(0.2, -0.6)},
Test{complex(1, -1), complex(2, -1), complex(0.6, -0.2)},
Test{complex(1, -1), complex(2, 2), complex(0, -0.5)},
Test{complex(1, -1), complex(nan, nan), complex(nan, nan)},
Test{complex(1, -1), complex(-nan, inf), complex(negzero, negzero)},
Test{complex(1, -1), complex(-nan, -inf), complex(0, 0)},
Test{complex(1, -1), complex(nan, 0), complex(nan, nan)},
Test{complex(1, -1), complex(nan, 1), complex(nan, nan)},
Test{complex(1, -1), complex(nan, -1), complex(nan, nan)},
Test{complex(1, -1), complex(nan, 2), complex(nan, nan)},
Test{complex(1, -1), complex(nan, nan), complex(nan, nan)},
Test{complex(1, -1), complex(-nan, inf), complex(negzero, negzero)},
Test{complex(1, -1), complex(-nan, -inf), complex(0, 0)},
Test{complex(1, -1), complex(inf, 0), complex(0, negzero)},
Test{complex(1, -1), complex(inf, 1), complex(0, negzero)},
Test{complex(1, -1), complex(inf, -1), complex(0, negzero)},
Test{complex(1, -1), complex(inf, 2), complex(0, negzero)},
Test{complex(1, -1), complex(nan, nan), complex(nan, nan)},
Test{complex(1, -1), complex(-nan, inf), complex(negzero, negzero)},
Test{complex(1, -1), complex(-nan, -inf), complex(0, 0)},
Test{complex(1, -1), complex(-inf, 0), complex(negzero, 0)},
Test{complex(1, -1), complex(-inf, 1), complex(negzero, 0)},
Test{complex(1, -1), complex(-inf, -1), complex(negzero, 0)},
Test{complex(1, -1), complex(-inf, 2), complex(negzero, 0)},
Test{complex(1, -1), complex(nan, nan), complex(nan, nan)},
Test{complex(1, -1), complex(-nan, inf), complex(negzero, negzero)},
Test{complex(1, -1), complex(-nan, -inf), complex(0, 0)},
Test{complex(1, 2), complex(0, 0), complex(inf, inf)},
Test{complex(1, 2), complex(0, 1), complex(2, -1)},
Test{complex(1, 2), complex(0, -1), complex(-2, 1)},
Test{complex(1, 2), complex(0, 2), complex(1, -0.5)},
Test{complex(1, 2), complex(nan, nan), complex(nan, nan)},
Test{complex(1, 2), complex(-nan, inf), complex(0, negzero)},
Test{complex(1, 2), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(1, 2), complex(1, 0), complex(1, 2)},
Test{complex(1, 2), complex(1, 1), complex(1.5, 0.5)},
Test{complex(1, 2), complex(1, -1), complex(-0.5, 1.5)},
Test{complex(1, 2), complex(1, 2), complex(1, 0)},
Test{complex(1, 2), complex(nan, nan), complex(nan, nan)},
Test{complex(1, 2), complex(-nan, inf), complex(0, negzero)},
Test{complex(1, 2), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(1, 2), complex(-1, 0), complex(-1, -2)},
Test{complex(1, 2), complex(-1, 1), complex(0.5, -1.5)},
Test{complex(1, 2), complex(-1, -1), complex(-1.5, -0.5)},
Test{complex(1, 2), complex(-1, 2), complex(0.6, -0.8)},
Test{complex(1, 2), complex(nan, nan), complex(nan, nan)},
Test{complex(1, 2), complex(-nan, inf), complex(0, negzero)},
Test{complex(1, 2), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(1, 2), complex(2, 0), complex(0.5, 1)},
Test{complex(1, 2), complex(2, 1), complex(0.8, 0.6)},
Test{complex(1, 2), complex(2, -1), complex(0, 1)},
Test{complex(1, 2), complex(2, 2), complex(0.75, 0.25)},
Test{complex(1, 2), complex(nan, nan), complex(nan, nan)},
Test{complex(1, 2), complex(-nan, inf), complex(0, negzero)},
Test{complex(1, 2), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(1, 2), complex(nan, 0), complex(nan, nan)},
Test{complex(1, 2), complex(nan, 1), complex(nan, nan)},
Test{complex(1, 2), complex(nan, -1), complex(nan, nan)},
Test{complex(1, 2), complex(nan, 2), complex(nan, nan)},
Test{complex(1, 2), complex(nan, nan), complex(nan, nan)},
Test{complex(1, 2), complex(-nan, inf), complex(0, negzero)},
Test{complex(1, 2), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(1, 2), complex(inf, 0), complex(0, 0)},
Test{complex(1, 2), complex(inf, 1), complex(0, 0)},
Test{complex(1, 2), complex(inf, -1), complex(0, 0)},
Test{complex(1, 2), complex(inf, 2), complex(0, 0)},
Test{complex(1, 2), complex(nan, nan), complex(nan, nan)},
Test{complex(1, 2), complex(-nan, inf), complex(0, negzero)},
Test{complex(1, 2), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(1, 2), complex(-inf, 0), complex(negzero, negzero)},
Test{complex(1, 2), complex(-inf, 1), complex(negzero, negzero)},
Test{complex(1, 2), complex(-inf, -1), complex(negzero, negzero)},
Test{complex(1, 2), complex(-inf, 2), complex(negzero, negzero)},
Test{complex(1, 2), complex(nan, nan), complex(nan, nan)},
Test{complex(1, 2), complex(-nan, inf), complex(0, negzero)},
Test{complex(1, 2), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(nan, nan), complex(0, 0), complex(nan, nan)},
Test{complex(nan, nan), complex(0, 1), complex(nan, nan)},
Test{complex(nan, nan), complex(0, -1), complex(nan, nan)},
Test{complex(nan, nan), complex(0, 2), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, -inf), complex(nan, nan)},
Test{complex(nan, nan), complex(1, 0), complex(nan, nan)},
Test{complex(nan, nan), complex(1, 1), complex(nan, nan)},
Test{complex(nan, nan), complex(1, -1), complex(nan, nan)},
Test{complex(nan, nan), complex(1, 2), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, -inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-1, 0), complex(nan, nan)},
Test{complex(nan, nan), complex(-1, 1), complex(nan, nan)},
Test{complex(nan, nan), complex(-1, -1), complex(nan, nan)},
Test{complex(nan, nan), complex(-1, 2), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, -inf), complex(nan, nan)},
Test{complex(nan, nan), complex(2, 0), complex(nan, nan)},
Test{complex(nan, nan), complex(2, 1), complex(nan, nan)},
Test{complex(nan, nan), complex(2, -1), complex(nan, nan)},
Test{complex(nan, nan), complex(2, 2), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, -inf), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, 0), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, 1), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, -1), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, 2), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, -inf), complex(nan, nan)},
Test{complex(nan, nan), complex(inf, 0), complex(nan, nan)},
Test{complex(nan, nan), complex(inf, 1), complex(nan, nan)},
Test{complex(nan, nan), complex(inf, -1), complex(nan, nan)},
Test{complex(nan, nan), complex(inf, 2), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, -inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-inf, 0), complex(nan, nan)},
Test{complex(nan, nan), complex(-inf, 1), complex(nan, nan)},
Test{complex(nan, nan), complex(-inf, -1), complex(nan, nan)},
Test{complex(nan, nan), complex(-inf, 2), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, -inf), complex(nan, nan)},
Test{complex(-nan, inf), complex(0, 0), complex(-nan, inf)},
Test{complex(-nan, inf), complex(0, 1), complex(inf, -nan)},
Test{complex(-nan, inf), complex(0, -1), complex(-inf, -nan)},
Test{complex(-nan, inf), complex(0, 2), complex(inf, -nan)},
Test{complex(-nan, inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(1, 0), complex(-nan, inf)},
Test{complex(-nan, inf), complex(1, 1), complex(inf, inf)},
Test{complex(-nan, inf), complex(1, -1), complex(-inf, inf)},
Test{complex(-nan, inf), complex(1, 2), complex(inf, inf)},
Test{complex(-nan, inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-1, 0), complex(-nan, -inf)},
Test{complex(-nan, inf), complex(-1, 1), complex(inf, -inf)},
Test{complex(-nan, inf), complex(-1, -1), complex(-inf, -inf)},
Test{complex(-nan, inf), complex(-1, 2), complex(inf, -inf)},
Test{complex(-nan, inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(2, 0), complex(-nan, inf)},
Test{complex(-nan, inf), complex(2, 1), complex(inf, inf)},
Test{complex(-nan, inf), complex(2, -1), complex(-inf, inf)},
Test{complex(-nan, inf), complex(2, 2), complex(inf, inf)},
Test{complex(-nan, inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(nan, 0), complex(nan, nan)},
Test{complex(-nan, inf), complex(nan, 1), complex(nan, nan)},
Test{complex(-nan, inf), complex(nan, -1), complex(nan, nan)},
Test{complex(-nan, inf), complex(nan, 2), complex(nan, nan)},
Test{complex(-nan, inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(inf, 0), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(inf, 1), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(inf, -1), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(inf, 2), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-inf, 0), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-inf, 1), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-inf, -1), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-inf, 2), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(0, 0), complex(-nan, -inf)},
Test{complex(-nan, -inf), complex(0, 1), complex(-inf, -nan)},
Test{complex(-nan, -inf), complex(0, -1), complex(inf, -nan)},
Test{complex(-nan, -inf), complex(0, 2), complex(-inf, -nan)},
Test{complex(-nan, -inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, -inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(1, 0), complex(-nan, -inf)},
Test{complex(-nan, -inf), complex(1, 1), complex(-inf, -inf)},
Test{complex(-nan, -inf), complex(1, -1), complex(inf, -inf)},
Test{complex(-nan, -inf), complex(1, 2), complex(-inf, -inf)},
Test{complex(-nan, -inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, -inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-1, 0), complex(-nan, inf)},
Test{complex(-nan, -inf), complex(-1, 1), complex(-inf, inf)},
Test{complex(-nan, -inf), complex(-1, -1), complex(inf, inf)},
Test{complex(-nan, -inf), complex(-1, 2), complex(-inf, inf)},
Test{complex(-nan, -inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, -inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(2, 0), complex(-nan, -inf)},
Test{complex(-nan, -inf), complex(2, 1), complex(-inf, -inf)},
Test{complex(-nan, -inf), complex(2, -1), complex(inf, -inf)},
Test{complex(-nan, -inf), complex(2, 2), complex(-inf, -inf)},
Test{complex(-nan, -inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, -inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(nan, 0), complex(nan, nan)},
Test{complex(-nan, -inf), complex(nan, 1), complex(nan, nan)},
Test{complex(-nan, -inf), complex(nan, -1), complex(nan, nan)},
Test{complex(-nan, -inf), complex(nan, 2), complex(nan, nan)},
Test{complex(-nan, -inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, -inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(inf, 0), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(inf, 1), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(inf, -1), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(inf, 2), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, -inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-inf, 0), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-inf, 1), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-inf, -1), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-inf, 2), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, -inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-1, 0), complex(0, 0), complex(-inf, -nan)},
Test{complex(-1, 0), complex(0, 1), complex(0, 1)},
Test{complex(-1, 0), complex(0, -1), complex(negzero, -1)},
Test{complex(-1, 0), complex(0, 2), complex(0, 0.5)},
Test{complex(-1, 0), complex(nan, nan), complex(nan, nan)},
Test{complex(-1, 0), complex(-nan, inf), complex(0, 0)},
Test{complex(-1, 0), complex(-nan, -inf), complex(0, negzero)},
Test{complex(-1, 0), complex(1, 0), complex(-1, 0)},
Test{complex(-1, 0), complex(1, 1), complex(-0.5, 0.5)},
Test{complex(-1, 0), complex(1, -1), complex(-0.5, -0.5)},
Test{complex(-1, 0), complex(1, 2), complex(-0.2, 0.4)},
Test{complex(-1, 0), complex(nan, nan), complex(nan, nan)},
Test{complex(-1, 0), complex(-nan, inf), complex(0, 0)},
Test{complex(-1, 0), complex(-nan, -inf), complex(0, negzero)},
Test{complex(-1, 0), complex(-1, 0), complex(1, negzero)},
Test{complex(-1, 0), complex(-1, 1), complex(0.5, 0.5)},
Test{complex(-1, 0), complex(-1, -1), complex(0.5, -0.5)},
Test{complex(-1, 0), complex(-1, 2), complex(0.2, 0.4)},
Test{complex(-1, 0), complex(nan, nan), complex(nan, nan)},
Test{complex(-1, 0), complex(-nan, inf), complex(0, 0)},
Test{complex(-1, 0), complex(-nan, -inf), complex(0, negzero)},
Test{complex(-1, 0), complex(2, 0), complex(-0.5, 0)},
Test{complex(-1, 0), complex(2, 1), complex(-0.4, 0.2)},
Test{complex(-1, 0), complex(2, -1), complex(-0.4, -0.2)},
Test{complex(-1, 0), complex(2, 2), complex(-0.25, 0.25)},
Test{complex(-1, 0), complex(nan, nan), complex(nan, nan)},
Test{complex(-1, 0), complex(-nan, inf), complex(0, 0)},
Test{complex(-1, 0), complex(-nan, -inf), complex(0, negzero)},
Test{complex(-1, 0), complex(nan, 0), complex(nan, nan)},
Test{complex(-1, 0), complex(nan, 1), complex(nan, nan)},
Test{complex(-1, 0), complex(nan, -1), complex(nan, nan)},
Test{complex(-1, 0), complex(nan, 2), complex(nan, nan)},
Test{complex(-1, 0), complex(nan, nan), complex(nan, nan)},
Test{complex(-1, 0), complex(-nan, inf), complex(0, 0)},
Test{complex(-1, 0), complex(-nan, -inf), complex(0, negzero)},
Test{complex(-1, 0), complex(inf, 0), complex(negzero, 0)},
Test{complex(-1, 0), complex(inf, 1), complex(negzero, 0)},
Test{complex(-1, 0), complex(inf, -1), complex(negzero, 0)},
Test{complex(-1, 0), complex(inf, 2), complex(negzero, 0)},
Test{complex(-1, 0), complex(nan, nan), complex(nan, nan)},
Test{complex(-1, 0), complex(-nan, inf), complex(0, 0)},
Test{complex(-1, 0), complex(-nan, -inf), complex(0, negzero)},
Test{complex(-1, 0), complex(-inf, 0), complex(0, negzero)},
Test{complex(-1, 0), complex(-inf, 1), complex(0, negzero)},
Test{complex(-1, 0), complex(-inf, -1), complex(0, negzero)},
Test{complex(-1, 0), complex(-inf, 2), complex(0, negzero)},
Test{complex(-1, 0), complex(nan, nan), complex(nan, nan)},
Test{complex(-1, 0), complex(-nan, inf), complex(0, 0)},
Test{complex(-1, 0), complex(-nan, -inf), complex(0, negzero)},
Test{complex(-1, 1), complex(0, 0), complex(-inf, inf)},
Test{complex(-1, 1), complex(0, 1), complex(1, 1)},
Test{complex(-1, 1), complex(0, -1), complex(-1, -1)},
Test{complex(-1, 1), complex(0, 2), complex(0.5, 0.5)},
Test{complex(-1, 1), complex(nan, nan), complex(nan, nan)},
Test{complex(-1, 1), complex(-nan, inf), complex(0, 0)},
Test{complex(-1, 1), complex(-nan, -inf), complex(negzero, negzero)},
Test{complex(-1, 1), complex(1, 0), complex(-1, 1)},
Test{complex(-1, 1), complex(1, 1), complex(0, 1)},
Test{complex(-1, 1), complex(1, -1), complex(-1, 0)},
Test{complex(-1, 1), complex(1, 2), complex(0.2, 0.6)},
Test{complex(-1, 1), complex(nan, nan), complex(nan, nan)},
Test{complex(-1, 1), complex(-nan, inf), complex(0, 0)},
Test{complex(-1, 1), complex(-nan, -inf), complex(negzero, negzero)},
Test{complex(-1, 1), complex(-1, 0), complex(1, -1)},
Test{complex(-1, 1), complex(-1, 1), complex(1, negzero)},
Test{complex(-1, 1), complex(-1, -1), complex(negzero, -1)},
Test{complex(-1, 1), complex(-1, 2), complex(0.6, 0.2)},
Test{complex(-1, 1), complex(nan, nan), complex(nan, nan)},
Test{complex(-1, 1), complex(-nan, inf), complex(0, 0)},
Test{complex(-1, 1), complex(-nan, -inf), complex(negzero, negzero)},
Test{complex(-1, 1), complex(2, 0), complex(-0.5, 0.5)},
Test{complex(-1, 1), complex(2, 1), complex(-0.2, 0.6)},
Test{complex(-1, 1), complex(2, -1), complex(-0.6, 0.2)},
Test{complex(-1, 1), complex(2, 2), complex(0, 0.5)},
Test{complex(-1, 1), complex(nan, nan), complex(nan, nan)},
Test{complex(-1, 1), complex(-nan, inf), complex(0, 0)},
Test{complex(-1, 1), complex(-nan, -inf), complex(negzero, negzero)},
Test{complex(-1, 1), complex(nan, 0), complex(nan, nan)},
Test{complex(-1, 1), complex(nan, 1), complex(nan, nan)},
Test{complex(-1, 1), complex(nan, -1), complex(nan, nan)},
Test{complex(-1, 1), complex(nan, 2), complex(nan, nan)},
Test{complex(-1, 1), complex(nan, nan), complex(nan, nan)},
Test{complex(-1, 1), complex(-nan, inf), complex(0, 0)},
Test{complex(-1, 1), complex(-nan, -inf), complex(negzero, negzero)},
Test{complex(-1, 1), complex(inf, 0), complex(negzero, 0)},
Test{complex(-1, 1), complex(inf, 1), complex(negzero, 0)},
Test{complex(-1, 1), complex(inf, -1), complex(negzero, 0)},
Test{complex(-1, 1), complex(inf, 2), complex(negzero, 0)},
Test{complex(-1, 1), complex(nan, nan), complex(nan, nan)},
Test{complex(-1, 1), complex(-nan, inf), complex(0, 0)},
Test{complex(-1, 1), complex(-nan, -inf), complex(negzero, negzero)},
Test{complex(-1, 1), complex(-inf, 0), complex(0, negzero)},
Test{complex(-1, 1), complex(-inf, 1), complex(0, negzero)},
Test{complex(-1, 1), complex(-inf, -1), complex(0, negzero)},
Test{complex(-1, 1), complex(-inf, 2), complex(0, negzero)},
Test{complex(-1, 1), complex(nan, nan), complex(nan, nan)},
Test{complex(-1, 1), complex(-nan, inf), complex(0, 0)},
Test{complex(-1, 1), complex(-nan, -inf), complex(negzero, negzero)},
Test{complex(-1, -1), complex(0, 0), complex(-inf, -inf)},
Test{complex(-1, -1), complex(0, 1), complex(-1, 1)},
Test{complex(-1, -1), complex(0, -1), complex(1, -1)},
Test{complex(-1, -1), complex(0, 2), complex(-0.5, 0.5)},
Test{complex(-1, -1), complex(nan, nan), complex(nan, nan)},
Test{complex(-1, -1), complex(-nan, inf), complex(negzero, 0)},
Test{complex(-1, -1), complex(-nan, -inf), complex(0, negzero)},
Test{complex(-1, -1), complex(1, 0), complex(-1, -1)},
Test{complex(-1, -1), complex(1, 1), complex(-1, 0)},
Test{complex(-1, -1), complex(1, -1), complex(0, -1)},
Test{complex(-1, -1), complex(1, 2), complex(-0.6, 0.2)},
Test{complex(-1, -1), complex(nan, nan), complex(nan, nan)},
Test{complex(-1, -1), complex(-nan, inf), complex(negzero, 0)},
Test{complex(-1, -1), complex(-nan, -inf), complex(0, negzero)},
Test{complex(-1, -1), complex(-1, 0), complex(1, 1)},
Test{complex(-1, -1), complex(-1, 1), complex(negzero, 1)},
Test{complex(-1, -1), complex(-1, -1), complex(1, negzero)},
Test{complex(-1, -1), complex(-1, 2), complex(-0.2, 0.6)},
Test{complex(-1, -1), complex(nan, nan), complex(nan, nan)},
Test{complex(-1, -1), complex(-nan, inf), complex(negzero, 0)},
Test{complex(-1, -1), complex(-nan, -inf), complex(0, negzero)},
Test{complex(-1, -1), complex(2, 0), complex(-0.5, -0.5)},
Test{complex(-1, -1), complex(2, 1), complex(-0.6, -0.2)},
Test{complex(-1, -1), complex(2, -1), complex(-0.2, -0.6)},
Test{complex(-1, -1), complex(2, 2), complex(-0.5, 0)},
Test{complex(-1, -1), complex(nan, nan), complex(nan, nan)},
Test{complex(-1, -1), complex(-nan, inf), complex(negzero, 0)},
Test{complex(-1, -1), complex(-nan, -inf), complex(0, negzero)},
Test{complex(-1, -1), complex(nan, 0), complex(nan, nan)},
Test{complex(-1, -1), complex(nan, 1), complex(nan, nan)},
Test{complex(-1, -1), complex(nan, -1), complex(nan, nan)},
Test{complex(-1, -1), complex(nan, 2), complex(nan, nan)},
Test{complex(-1, -1), complex(nan, nan), complex(nan, nan)},
Test{complex(-1, -1), complex(-nan, inf), complex(negzero, 0)},
Test{complex(-1, -1), complex(-nan, -inf), complex(0, negzero)},
Test{complex(-1, -1), complex(inf, 0), complex(negzero, negzero)},
Test{complex(-1, -1), complex(inf, 1), complex(negzero, negzero)},
Test{complex(-1, -1), complex(inf, -1), complex(negzero, negzero)},
Test{complex(-1, -1), complex(inf, 2), complex(negzero, negzero)},
Test{complex(-1, -1), complex(nan, nan), complex(nan, nan)},
Test{complex(-1, -1), complex(-nan, inf), complex(negzero, 0)},
Test{complex(-1, -1), complex(-nan, -inf), complex(0, negzero)},
Test{complex(-1, -1), complex(-inf, 0), complex(0, 0)},
Test{complex(-1, -1), complex(-inf, 1), complex(0, 0)},
Test{complex(-1, -1), complex(-inf, -1), complex(0, 0)},
Test{complex(-1, -1), complex(-inf, 2), complex(0, 0)},
Test{complex(-1, -1), complex(nan, nan), complex(nan, nan)},
Test{complex(-1, -1), complex(-nan, inf), complex(negzero, 0)},
Test{complex(-1, -1), complex(-nan, -inf), complex(0, negzero)},
Test{complex(-1, 2), complex(0, 0), complex(-inf, inf)},
Test{complex(-1, 2), complex(0, 1), complex(2, 1)},
Test{complex(-1, 2), complex(0, -1), complex(-2, -1)},
Test{complex(-1, 2), complex(0, 2), complex(1, 0.5)},
Test{complex(-1, 2), complex(nan, nan), complex(nan, nan)},
Test{complex(-1, 2), complex(-nan, inf), complex(0, 0)},
Test{complex(-1, 2), complex(-nan, -inf), complex(negzero, negzero)},
Test{complex(-1, 2), complex(1, 0), complex(-1, 2)},
Test{complex(-1, 2), complex(1, 1), complex(0.5, 1.5)},
Test{complex(-1, 2), complex(1, -1), complex(-1.5, 0.5)},
Test{complex(-1, 2), complex(1, 2), complex(0.6, 0.8)},
Test{complex(-1, 2), complex(nan, nan), complex(nan, nan)},
Test{complex(-1, 2), complex(-nan, inf), complex(0, 0)},
Test{complex(-1, 2), complex(-nan, -inf), complex(negzero, negzero)},
Test{complex(-1, 2), complex(-1, 0), complex(1, -2)},
Test{complex(-1, 2), complex(-1, 1), complex(1.5, -0.5)},
Test{complex(-1, 2), complex(-1, -1), complex(-0.5, -1.5)},
Test{complex(-1, 2), complex(-1, 2), complex(1, 0)},
Test{complex(-1, 2), complex(nan, nan), complex(nan, nan)},
Test{complex(-1, 2), complex(-nan, inf), complex(0, 0)},
Test{complex(-1, 2), complex(-nan, -inf), complex(negzero, negzero)},
Test{complex(-1, 2), complex(2, 0), complex(-0.5, 1)},
Test{complex(-1, 2), complex(2, 1), complex(0, 1)},
Test{complex(-1, 2), complex(2, -1), complex(-0.8, 0.6)},
Test{complex(-1, 2), complex(2, 2), complex(0.25, 0.75)},
Test{complex(-1, 2), complex(nan, nan), complex(nan, nan)},
Test{complex(-1, 2), complex(-nan, inf), complex(0, 0)},
Test{complex(-1, 2), complex(-nan, -inf), complex(negzero, negzero)},
Test{complex(-1, 2), complex(nan, 0), complex(nan, nan)},
Test{complex(-1, 2), complex(nan, 1), complex(nan, nan)},
Test{complex(-1, 2), complex(nan, -1), complex(nan, nan)},
Test{complex(-1, 2), complex(nan, 2), complex(nan, nan)},
Test{complex(-1, 2), complex(nan, nan), complex(nan, nan)},
Test{complex(-1, 2), complex(-nan, inf), complex(0, 0)},
Test{complex(-1, 2), complex(-nan, -inf), complex(negzero, negzero)},
Test{complex(-1, 2), complex(inf, 0), complex(negzero, 0)},
Test{complex(-1, 2), complex(inf, 1), complex(negzero, 0)},
Test{complex(-1, 2), complex(inf, -1), complex(negzero, 0)},
Test{complex(-1, 2), complex(inf, 2), complex(negzero, 0)},
Test{complex(-1, 2), complex(nan, nan), complex(nan, nan)},
Test{complex(-1, 2), complex(-nan, inf), complex(0, 0)},
Test{complex(-1, 2), complex(-nan, -inf), complex(negzero, negzero)},
Test{complex(-1, 2), complex(-inf, 0), complex(0, negzero)},
Test{complex(-1, 2), complex(-inf, 1), complex(0, negzero)},
Test{complex(-1, 2), complex(-inf, -1), complex(0, negzero)},
Test{complex(-1, 2), complex(-inf, 2), complex(0, negzero)},
Test{complex(-1, 2), complex(nan, nan), complex(nan, nan)},
Test{complex(-1, 2), complex(-nan, inf), complex(0, 0)},
Test{complex(-1, 2), complex(-nan, -inf), complex(negzero, negzero)},
Test{complex(nan, nan), complex(0, 0), complex(nan, nan)},
Test{complex(nan, nan), complex(0, 1), complex(nan, nan)},
Test{complex(nan, nan), complex(0, -1), complex(nan, nan)},
Test{complex(nan, nan), complex(0, 2), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, -inf), complex(nan, nan)},
Test{complex(nan, nan), complex(1, 0), complex(nan, nan)},
Test{complex(nan, nan), complex(1, 1), complex(nan, nan)},
Test{complex(nan, nan), complex(1, -1), complex(nan, nan)},
Test{complex(nan, nan), complex(1, 2), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, -inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-1, 0), complex(nan, nan)},
Test{complex(nan, nan), complex(-1, 1), complex(nan, nan)},
Test{complex(nan, nan), complex(-1, -1), complex(nan, nan)},
Test{complex(nan, nan), complex(-1, 2), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, -inf), complex(nan, nan)},
Test{complex(nan, nan), complex(2, 0), complex(nan, nan)},
Test{complex(nan, nan), complex(2, 1), complex(nan, nan)},
Test{complex(nan, nan), complex(2, -1), complex(nan, nan)},
Test{complex(nan, nan), complex(2, 2), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, -inf), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, 0), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, 1), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, -1), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, 2), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, -inf), complex(nan, nan)},
Test{complex(nan, nan), complex(inf, 0), complex(nan, nan)},
Test{complex(nan, nan), complex(inf, 1), complex(nan, nan)},
Test{complex(nan, nan), complex(inf, -1), complex(nan, nan)},
Test{complex(nan, nan), complex(inf, 2), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, -inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-inf, 0), complex(nan, nan)},
Test{complex(nan, nan), complex(-inf, 1), complex(nan, nan)},
Test{complex(nan, nan), complex(-inf, -1), complex(nan, nan)},
Test{complex(nan, nan), complex(-inf, 2), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, -inf), complex(nan, nan)},
Test{complex(-nan, inf), complex(0, 0), complex(-nan, inf)},
Test{complex(-nan, inf), complex(0, 1), complex(inf, -nan)},
Test{complex(-nan, inf), complex(0, -1), complex(-inf, -nan)},
Test{complex(-nan, inf), complex(0, 2), complex(inf, -nan)},
Test{complex(-nan, inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(1, 0), complex(-nan, inf)},
Test{complex(-nan, inf), complex(1, 1), complex(inf, inf)},
Test{complex(-nan, inf), complex(1, -1), complex(-inf, inf)},
Test{complex(-nan, inf), complex(1, 2), complex(inf, inf)},
Test{complex(-nan, inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-1, 0), complex(-nan, -inf)},
Test{complex(-nan, inf), complex(-1, 1), complex(inf, -inf)},
Test{complex(-nan, inf), complex(-1, -1), complex(-inf, -inf)},
Test{complex(-nan, inf), complex(-1, 2), complex(inf, -inf)},
Test{complex(-nan, inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(2, 0), complex(-nan, inf)},
Test{complex(-nan, inf), complex(2, 1), complex(inf, inf)},
Test{complex(-nan, inf), complex(2, -1), complex(-inf, inf)},
Test{complex(-nan, inf), complex(2, 2), complex(inf, inf)},
Test{complex(-nan, inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(nan, 0), complex(nan, nan)},
Test{complex(-nan, inf), complex(nan, 1), complex(nan, nan)},
Test{complex(-nan, inf), complex(nan, -1), complex(nan, nan)},
Test{complex(-nan, inf), complex(nan, 2), complex(nan, nan)},
Test{complex(-nan, inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(inf, 0), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(inf, 1), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(inf, -1), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(inf, 2), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-inf, 0), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-inf, 1), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-inf, -1), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-inf, 2), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(0, 0), complex(-nan, -inf)},
Test{complex(-nan, -inf), complex(0, 1), complex(-inf, -nan)},
Test{complex(-nan, -inf), complex(0, -1), complex(inf, -nan)},
Test{complex(-nan, -inf), complex(0, 2), complex(-inf, -nan)},
Test{complex(-nan, -inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, -inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(1, 0), complex(-nan, -inf)},
Test{complex(-nan, -inf), complex(1, 1), complex(-inf, -inf)},
Test{complex(-nan, -inf), complex(1, -1), complex(inf, -inf)},
Test{complex(-nan, -inf), complex(1, 2), complex(-inf, -inf)},
Test{complex(-nan, -inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, -inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-1, 0), complex(-nan, inf)},
Test{complex(-nan, -inf), complex(-1, 1), complex(-inf, inf)},
Test{complex(-nan, -inf), complex(-1, -1), complex(inf, inf)},
Test{complex(-nan, -inf), complex(-1, 2), complex(-inf, inf)},
Test{complex(-nan, -inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, -inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(2, 0), complex(-nan, -inf)},
Test{complex(-nan, -inf), complex(2, 1), complex(-inf, -inf)},
Test{complex(-nan, -inf), complex(2, -1), complex(inf, -inf)},
Test{complex(-nan, -inf), complex(2, 2), complex(-inf, -inf)},
Test{complex(-nan, -inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, -inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(nan, 0), complex(nan, nan)},
Test{complex(-nan, -inf), complex(nan, 1), complex(nan, nan)},
Test{complex(-nan, -inf), complex(nan, -1), complex(nan, nan)},
Test{complex(-nan, -inf), complex(nan, 2), complex(nan, nan)},
Test{complex(-nan, -inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, -inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(inf, 0), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(inf, 1), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(inf, -1), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(inf, 2), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, -inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-inf, 0), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-inf, 1), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-inf, -1), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-inf, 2), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, -inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(2, 0), complex(0, 0), complex(inf, -nan)},
Test{complex(2, 0), complex(0, 1), complex(0, -2)},
Test{complex(2, 0), complex(0, -1), complex(negzero, 2)},
Test{complex(2, 0), complex(0, 2), complex(0, -1)},
Test{complex(2, 0), complex(nan, nan), complex(nan, nan)},
Test{complex(2, 0), complex(-nan, inf), complex(0, negzero)},
Test{complex(2, 0), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(2, 0), complex(1, 0), complex(2, 0)},
Test{complex(2, 0), complex(1, 1), complex(1, -1)},
Test{complex(2, 0), complex(1, -1), complex(1, 1)},
Test{complex(2, 0), complex(1, 2), complex(0.4, -0.8)},
Test{complex(2, 0), complex(nan, nan), complex(nan, nan)},
Test{complex(2, 0), complex(-nan, inf), complex(0, negzero)},
Test{complex(2, 0), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(2, 0), complex(-1, 0), complex(-2, negzero)},
Test{complex(2, 0), complex(-1, 1), complex(-1, -1)},
Test{complex(2, 0), complex(-1, -1), complex(-1, 1)},
Test{complex(2, 0), complex(-1, 2), complex(-0.4, -0.8)},
Test{complex(2, 0), complex(nan, nan), complex(nan, nan)},
Test{complex(2, 0), complex(-nan, inf), complex(0, negzero)},
Test{complex(2, 0), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(2, 0), complex(2, 0), complex(1, 0)},
Test{complex(2, 0), complex(2, 1), complex(0.8, -0.4)},
Test{complex(2, 0), complex(2, -1), complex(0.8, 0.4)},
Test{complex(2, 0), complex(2, 2), complex(0.5, -0.5)},
Test{complex(2, 0), complex(nan, nan), complex(nan, nan)},
Test{complex(2, 0), complex(-nan, inf), complex(0, negzero)},
Test{complex(2, 0), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(2, 0), complex(nan, 0), complex(nan, nan)},
Test{complex(2, 0), complex(nan, 1), complex(nan, nan)},
Test{complex(2, 0), complex(nan, -1), complex(nan, nan)},
Test{complex(2, 0), complex(nan, 2), complex(nan, nan)},
Test{complex(2, 0), complex(nan, nan), complex(nan, nan)},
Test{complex(2, 0), complex(-nan, inf), complex(0, negzero)},
Test{complex(2, 0), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(2, 0), complex(inf, 0), complex(0, 0)},
Test{complex(2, 0), complex(inf, 1), complex(0, 0)},
Test{complex(2, 0), complex(inf, -1), complex(0, 0)},
Test{complex(2, 0), complex(inf, 2), complex(0, 0)},
Test{complex(2, 0), complex(nan, nan), complex(nan, nan)},
Test{complex(2, 0), complex(-nan, inf), complex(0, negzero)},
Test{complex(2, 0), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(2, 0), complex(-inf, 0), complex(negzero, negzero)},
Test{complex(2, 0), complex(-inf, 1), complex(negzero, negzero)},
Test{complex(2, 0), complex(-inf, -1), complex(negzero, negzero)},
Test{complex(2, 0), complex(-inf, 2), complex(negzero, negzero)},
Test{complex(2, 0), complex(nan, nan), complex(nan, nan)},
Test{complex(2, 0), complex(-nan, inf), complex(0, negzero)},
Test{complex(2, 0), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(2, 1), complex(0, 0), complex(inf, inf)},
Test{complex(2, 1), complex(0, 1), complex(1, -2)},
Test{complex(2, 1), complex(0, -1), complex(-1, 2)},
Test{complex(2, 1), complex(0, 2), complex(0.5, -1)},
Test{complex(2, 1), complex(nan, nan), complex(nan, nan)},
Test{complex(2, 1), complex(-nan, inf), complex(0, negzero)},
Test{complex(2, 1), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(2, 1), complex(1, 0), complex(2, 1)},
Test{complex(2, 1), complex(1, 1), complex(1.5, -0.5)},
Test{complex(2, 1), complex(1, -1), complex(0.5, 1.5)},
Test{complex(2, 1), complex(1, 2), complex(0.8, -0.6)},
Test{complex(2, 1), complex(nan, nan), complex(nan, nan)},
Test{complex(2, 1), complex(-nan, inf), complex(0, negzero)},
Test{complex(2, 1), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(2, 1), complex(-1, 0), complex(-2, -1)},
Test{complex(2, 1), complex(-1, 1), complex(-0.5, -1.5)},
Test{complex(2, 1), complex(-1, -1), complex(-1.5, 0.5)},
Test{complex(2, 1), complex(-1, 2), complex(0, -1)},
Test{complex(2, 1), complex(nan, nan), complex(nan, nan)},
Test{complex(2, 1), complex(-nan, inf), complex(0, negzero)},
Test{complex(2, 1), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(2, 1), complex(2, 0), complex(1, 0.5)},
Test{complex(2, 1), complex(2, 1), complex(1, 0)},
Test{complex(2, 1), complex(2, -1), complex(0.6, 0.8)},
Test{complex(2, 1), complex(2, 2), complex(0.75, -0.25)},
Test{complex(2, 1), complex(nan, nan), complex(nan, nan)},
Test{complex(2, 1), complex(-nan, inf), complex(0, negzero)},
Test{complex(2, 1), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(2, 1), complex(nan, 0), complex(nan, nan)},
Test{complex(2, 1), complex(nan, 1), complex(nan, nan)},
Test{complex(2, 1), complex(nan, -1), complex(nan, nan)},
Test{complex(2, 1), complex(nan, 2), complex(nan, nan)},
Test{complex(2, 1), complex(nan, nan), complex(nan, nan)},
Test{complex(2, 1), complex(-nan, inf), complex(0, negzero)},
Test{complex(2, 1), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(2, 1), complex(inf, 0), complex(0, 0)},
Test{complex(2, 1), complex(inf, 1), complex(0, 0)},
Test{complex(2, 1), complex(inf, -1), complex(0, 0)},
Test{complex(2, 1), complex(inf, 2), complex(0, 0)},
Test{complex(2, 1), complex(nan, nan), complex(nan, nan)},
Test{complex(2, 1), complex(-nan, inf), complex(0, negzero)},
Test{complex(2, 1), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(2, 1), complex(-inf, 0), complex(negzero, negzero)},
Test{complex(2, 1), complex(-inf, 1), complex(negzero, negzero)},
Test{complex(2, 1), complex(-inf, -1), complex(negzero, negzero)},
Test{complex(2, 1), complex(-inf, 2), complex(negzero, negzero)},
Test{complex(2, 1), complex(nan, nan), complex(nan, nan)},
Test{complex(2, 1), complex(-nan, inf), complex(0, negzero)},
Test{complex(2, 1), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(2, -1), complex(0, 0), complex(inf, -inf)},
Test{complex(2, -1), complex(0, 1), complex(-1, -2)},
Test{complex(2, -1), complex(0, -1), complex(1, 2)},
Test{complex(2, -1), complex(0, 2), complex(-0.5, -1)},
Test{complex(2, -1), complex(nan, nan), complex(nan, nan)},
Test{complex(2, -1), complex(-nan, inf), complex(negzero, negzero)},
Test{complex(2, -1), complex(-nan, -inf), complex(0, 0)},
Test{complex(2, -1), complex(1, 0), complex(2, -1)},
Test{complex(2, -1), complex(1, 1), complex(0.5, -1.5)},
Test{complex(2, -1), complex(1, -1), complex(1.5, 0.5)},
Test{complex(2, -1), complex(1, 2), complex(0, -1)},
Test{complex(2, -1), complex(nan, nan), complex(nan, nan)},
Test{complex(2, -1), complex(-nan, inf), complex(negzero, negzero)},
Test{complex(2, -1), complex(-nan, -inf), complex(0, 0)},
Test{complex(2, -1), complex(-1, 0), complex(-2, 1)},
Test{complex(2, -1), complex(-1, 1), complex(-1.5, -0.5)},
Test{complex(2, -1), complex(-1, -1), complex(-0.5, 1.5)},
Test{complex(2, -1), complex(-1, 2), complex(-0.8, -0.6)},
Test{complex(2, -1), complex(nan, nan), complex(nan, nan)},
Test{complex(2, -1), complex(-nan, inf), complex(negzero, negzero)},
Test{complex(2, -1), complex(-nan, -inf), complex(0, 0)},
Test{complex(2, -1), complex(2, 0), complex(1, -0.5)},
Test{complex(2, -1), complex(2, 1), complex(0.6, -0.8)},
Test{complex(2, -1), complex(2, -1), complex(1, 0)},
Test{complex(2, -1), complex(2, 2), complex(0.25, -0.75)},
Test{complex(2, -1), complex(nan, nan), complex(nan, nan)},
Test{complex(2, -1), complex(-nan, inf), complex(negzero, negzero)},
Test{complex(2, -1), complex(-nan, -inf), complex(0, 0)},
Test{complex(2, -1), complex(nan, 0), complex(nan, nan)},
Test{complex(2, -1), complex(nan, 1), complex(nan, nan)},
Test{complex(2, -1), complex(nan, -1), complex(nan, nan)},
Test{complex(2, -1), complex(nan, 2), complex(nan, nan)},
Test{complex(2, -1), complex(nan, nan), complex(nan, nan)},
Test{complex(2, -1), complex(-nan, inf), complex(negzero, negzero)},
Test{complex(2, -1), complex(-nan, -inf), complex(0, 0)},
Test{complex(2, -1), complex(inf, 0), complex(0, negzero)},
Test{complex(2, -1), complex(inf, 1), complex(0, negzero)},
Test{complex(2, -1), complex(inf, -1), complex(0, negzero)},
Test{complex(2, -1), complex(inf, 2), complex(0, negzero)},
Test{complex(2, -1), complex(nan, nan), complex(nan, nan)},
Test{complex(2, -1), complex(-nan, inf), complex(negzero, negzero)},
Test{complex(2, -1), complex(-nan, -inf), complex(0, 0)},
Test{complex(2, -1), complex(-inf, 0), complex(negzero, 0)},
Test{complex(2, -1), complex(-inf, 1), complex(negzero, 0)},
Test{complex(2, -1), complex(-inf, -1), complex(negzero, 0)},
Test{complex(2, -1), complex(-inf, 2), complex(negzero, 0)},
Test{complex(2, -1), complex(nan, nan), complex(nan, nan)},
Test{complex(2, -1), complex(-nan, inf), complex(negzero, negzero)},
Test{complex(2, -1), complex(-nan, -inf), complex(0, 0)},
Test{complex(2, 2), complex(0, 0), complex(inf, inf)},
Test{complex(2, 2), complex(0, 1), complex(2, -2)},
Test{complex(2, 2), complex(0, -1), complex(-2, 2)},
Test{complex(2, 2), complex(0, 2), complex(1, -1)},
Test{complex(2, 2), complex(nan, nan), complex(nan, nan)},
Test{complex(2, 2), complex(-nan, inf), complex(0, negzero)},
Test{complex(2, 2), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(2, 2), complex(1, 0), complex(2, 2)},
Test{complex(2, 2), complex(1, 1), complex(2, 0)},
Test{complex(2, 2), complex(1, -1), complex(0, 2)},
Test{complex(2, 2), complex(1, 2), complex(1.2, -0.4)},
Test{complex(2, 2), complex(nan, nan), complex(nan, nan)},
Test{complex(2, 2), complex(-nan, inf), complex(0, negzero)},
Test{complex(2, 2), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(2, 2), complex(-1, 0), complex(-2, -2)},
Test{complex(2, 2), complex(-1, 1), complex(negzero, -2)},
Test{complex(2, 2), complex(-1, -1), complex(-2, negzero)},
Test{complex(2, 2), complex(-1, 2), complex(0.4, -1.2)},
Test{complex(2, 2), complex(nan, nan), complex(nan, nan)},
Test{complex(2, 2), complex(-nan, inf), complex(0, negzero)},
Test{complex(2, 2), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(2, 2), complex(2, 0), complex(1, 1)},
Test{complex(2, 2), complex(2, 1), complex(1.2, 0.4)},
Test{complex(2, 2), complex(2, -1), complex(0.4, 1.2)},
Test{complex(2, 2), complex(2, 2), complex(1, 0)},
Test{complex(2, 2), complex(nan, nan), complex(nan, nan)},
Test{complex(2, 2), complex(-nan, inf), complex(0, negzero)},
Test{complex(2, 2), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(2, 2), complex(nan, 0), complex(nan, nan)},
Test{complex(2, 2), complex(nan, 1), complex(nan, nan)},
Test{complex(2, 2), complex(nan, -1), complex(nan, nan)},
Test{complex(2, 2), complex(nan, 2), complex(nan, nan)},
Test{complex(2, 2), complex(nan, nan), complex(nan, nan)},
Test{complex(2, 2), complex(-nan, inf), complex(0, negzero)},
Test{complex(2, 2), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(2, 2), complex(inf, 0), complex(0, 0)},
Test{complex(2, 2), complex(inf, 1), complex(0, 0)},
Test{complex(2, 2), complex(inf, -1), complex(0, 0)},
Test{complex(2, 2), complex(inf, 2), complex(0, 0)},
Test{complex(2, 2), complex(nan, nan), complex(nan, nan)},
Test{complex(2, 2), complex(-nan, inf), complex(0, negzero)},
Test{complex(2, 2), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(2, 2), complex(-inf, 0), complex(negzero, negzero)},
Test{complex(2, 2), complex(-inf, 1), complex(negzero, negzero)},
Test{complex(2, 2), complex(-inf, -1), complex(negzero, negzero)},
Test{complex(2, 2), complex(-inf, 2), complex(negzero, negzero)},
Test{complex(2, 2), complex(nan, nan), complex(nan, nan)},
Test{complex(2, 2), complex(-nan, inf), complex(0, negzero)},
Test{complex(2, 2), complex(-nan, -inf), complex(negzero, 0)},
Test{complex(nan, nan), complex(0, 0), complex(nan, nan)},
Test{complex(nan, nan), complex(0, 1), complex(nan, nan)},
Test{complex(nan, nan), complex(0, -1), complex(nan, nan)},
Test{complex(nan, nan), complex(0, 2), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, -inf), complex(nan, nan)},
Test{complex(nan, nan), complex(1, 0), complex(nan, nan)},
Test{complex(nan, nan), complex(1, 1), complex(nan, nan)},
Test{complex(nan, nan), complex(1, -1), complex(nan, nan)},
Test{complex(nan, nan), complex(1, 2), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, -inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-1, 0), complex(nan, nan)},
Test{complex(nan, nan), complex(-1, 1), complex(nan, nan)},
Test{complex(nan, nan), complex(-1, -1), complex(nan, nan)},
Test{complex(nan, nan), complex(-1, 2), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, -inf), complex(nan, nan)},
Test{complex(nan, nan), complex(2, 0), complex(nan, nan)},
Test{complex(nan, nan), complex(2, 1), complex(nan, nan)},
Test{complex(nan, nan), complex(2, -1), complex(nan, nan)},
Test{complex(nan, nan), complex(2, 2), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, -inf), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, 0), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, 1), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, -1), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, 2), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, -inf), complex(nan, nan)},
Test{complex(nan, nan), complex(inf, 0), complex(nan, nan)},
Test{complex(nan, nan), complex(inf, 1), complex(nan, nan)},
Test{complex(nan, nan), complex(inf, -1), complex(nan, nan)},
Test{complex(nan, nan), complex(inf, 2), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, -inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-inf, 0), complex(nan, nan)},
Test{complex(nan, nan), complex(-inf, 1), complex(nan, nan)},
Test{complex(nan, nan), complex(-inf, -1), complex(nan, nan)},
Test{complex(nan, nan), complex(-inf, 2), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, -inf), complex(nan, nan)},
Test{complex(-nan, inf), complex(0, 0), complex(-nan, inf)},
Test{complex(-nan, inf), complex(0, 1), complex(inf, -nan)},
Test{complex(-nan, inf), complex(0, -1), complex(-inf, -nan)},
Test{complex(-nan, inf), complex(0, 2), complex(inf, -nan)},
Test{complex(-nan, inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(1, 0), complex(-nan, inf)},
Test{complex(-nan, inf), complex(1, 1), complex(inf, inf)},
Test{complex(-nan, inf), complex(1, -1), complex(-inf, inf)},
Test{complex(-nan, inf), complex(1, 2), complex(inf, inf)},
Test{complex(-nan, inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-1, 0), complex(-nan, -inf)},
Test{complex(-nan, inf), complex(-1, 1), complex(inf, -inf)},
Test{complex(-nan, inf), complex(-1, -1), complex(-inf, -inf)},
Test{complex(-nan, inf), complex(-1, 2), complex(inf, -inf)},
Test{complex(-nan, inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(2, 0), complex(-nan, inf)},
Test{complex(-nan, inf), complex(2, 1), complex(inf, inf)},
Test{complex(-nan, inf), complex(2, -1), complex(-inf, inf)},
Test{complex(-nan, inf), complex(2, 2), complex(inf, inf)},
Test{complex(-nan, inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(nan, 0), complex(nan, nan)},
Test{complex(-nan, inf), complex(nan, 1), complex(nan, nan)},
Test{complex(-nan, inf), complex(nan, -1), complex(nan, nan)},
Test{complex(-nan, inf), complex(nan, 2), complex(nan, nan)},
Test{complex(-nan, inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(inf, 0), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(inf, 1), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(inf, -1), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(inf, 2), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-inf, 0), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-inf, 1), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-inf, -1), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-inf, 2), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(0, 0), complex(-nan, -inf)},
Test{complex(-nan, -inf), complex(0, 1), complex(-inf, -nan)},
Test{complex(-nan, -inf), complex(0, -1), complex(inf, -nan)},
Test{complex(-nan, -inf), complex(0, 2), complex(-inf, -nan)},
Test{complex(-nan, -inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, -inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(1, 0), complex(-nan, -inf)},
Test{complex(-nan, -inf), complex(1, 1), complex(-inf, -inf)},
Test{complex(-nan, -inf), complex(1, -1), complex(inf, -inf)},
Test{complex(-nan, -inf), complex(1, 2), complex(-inf, -inf)},
Test{complex(-nan, -inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, -inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-1, 0), complex(-nan, inf)},
Test{complex(-nan, -inf), complex(-1, 1), complex(-inf, inf)},
Test{complex(-nan, -inf), complex(-1, -1), complex(inf, inf)},
Test{complex(-nan, -inf), complex(-1, 2), complex(-inf, inf)},
Test{complex(-nan, -inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, -inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(2, 0), complex(-nan, -inf)},
Test{complex(-nan, -inf), complex(2, 1), complex(-inf, -inf)},
Test{complex(-nan, -inf), complex(2, -1), complex(inf, -inf)},
Test{complex(-nan, -inf), complex(2, 2), complex(-inf, -inf)},
Test{complex(-nan, -inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, -inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(nan, 0), complex(nan, nan)},
Test{complex(-nan, -inf), complex(nan, 1), complex(nan, nan)},
Test{complex(-nan, -inf), complex(nan, -1), complex(nan, nan)},
Test{complex(-nan, -inf), complex(nan, 2), complex(nan, nan)},
Test{complex(-nan, -inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, -inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(inf, 0), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(inf, 1), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(inf, -1), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(inf, 2), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, -inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-inf, 0), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-inf, 1), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-inf, -1), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-inf, 2), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, -inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(nan, 0), complex(0, 0), complex(nan, nan)},
Test{complex(nan, 0), complex(0, 1), complex(nan, nan)},
Test{complex(nan, 0), complex(0, -1), complex(nan, nan)},
Test{complex(nan, 0), complex(0, 2), complex(nan, nan)},
Test{complex(nan, 0), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, 0), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(nan, 0), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(nan, 0), complex(1, 0), complex(nan, nan)},
Test{complex(nan, 0), complex(1, 1), complex(nan, nan)},
Test{complex(nan, 0), complex(1, -1), complex(nan, nan)},
Test{complex(nan, 0), complex(1, 2), complex(nan, nan)},
Test{complex(nan, 0), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, 0), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(nan, 0), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(nan, 0), complex(-1, 0), complex(nan, nan)},
Test{complex(nan, 0), complex(-1, 1), complex(nan, nan)},
Test{complex(nan, 0), complex(-1, -1), complex(nan, nan)},
Test{complex(nan, 0), complex(-1, 2), complex(nan, nan)},
Test{complex(nan, 0), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, 0), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(nan, 0), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(nan, 0), complex(2, 0), complex(nan, nan)},
Test{complex(nan, 0), complex(2, 1), complex(nan, nan)},
Test{complex(nan, 0), complex(2, -1), complex(nan, nan)},
Test{complex(nan, 0), complex(2, 2), complex(nan, nan)},
Test{complex(nan, 0), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, 0), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(nan, 0), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(nan, 0), complex(nan, 0), complex(nan, nan)},
Test{complex(nan, 0), complex(nan, 1), complex(nan, nan)},
Test{complex(nan, 0), complex(nan, -1), complex(nan, nan)},
Test{complex(nan, 0), complex(nan, 2), complex(nan, nan)},
Test{complex(nan, 0), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, 0), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(nan, 0), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(nan, 0), complex(inf, 0), complex(nan, nan)},
Test{complex(nan, 0), complex(inf, 1), complex(nan, nan)},
Test{complex(nan, 0), complex(inf, -1), complex(nan, nan)},
Test{complex(nan, 0), complex(inf, 2), complex(nan, nan)},
Test{complex(nan, 0), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, 0), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(nan, 0), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(nan, 0), complex(-inf, 0), complex(nan, nan)},
Test{complex(nan, 0), complex(-inf, 1), complex(nan, nan)},
Test{complex(nan, 0), complex(-inf, -1), complex(nan, nan)},
Test{complex(nan, 0), complex(-inf, 2), complex(nan, nan)},
Test{complex(nan, 0), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, 0), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(nan, 0), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(nan, 1), complex(0, 0), complex(nan, nan)},
Test{complex(nan, 1), complex(0, 1), complex(nan, nan)},
Test{complex(nan, 1), complex(0, -1), complex(nan, nan)},
Test{complex(nan, 1), complex(0, 2), complex(nan, nan)},
Test{complex(nan, 1), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, 1), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(nan, 1), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(nan, 1), complex(1, 0), complex(nan, nan)},
Test{complex(nan, 1), complex(1, 1), complex(nan, nan)},
Test{complex(nan, 1), complex(1, -1), complex(nan, nan)},
Test{complex(nan, 1), complex(1, 2), complex(nan, nan)},
Test{complex(nan, 1), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, 1), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(nan, 1), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(nan, 1), complex(-1, 0), complex(nan, nan)},
Test{complex(nan, 1), complex(-1, 1), complex(nan, nan)},
Test{complex(nan, 1), complex(-1, -1), complex(nan, nan)},
Test{complex(nan, 1), complex(-1, 2), complex(nan, nan)},
Test{complex(nan, 1), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, 1), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(nan, 1), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(nan, 1), complex(2, 0), complex(nan, nan)},
Test{complex(nan, 1), complex(2, 1), complex(nan, nan)},
Test{complex(nan, 1), complex(2, -1), complex(nan, nan)},
Test{complex(nan, 1), complex(2, 2), complex(nan, nan)},
Test{complex(nan, 1), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, 1), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(nan, 1), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(nan, 1), complex(nan, 0), complex(nan, nan)},
Test{complex(nan, 1), complex(nan, 1), complex(nan, nan)},
Test{complex(nan, 1), complex(nan, -1), complex(nan, nan)},
Test{complex(nan, 1), complex(nan, 2), complex(nan, nan)},
Test{complex(nan, 1), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, 1), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(nan, 1), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(nan, 1), complex(inf, 0), complex(nan, nan)},
Test{complex(nan, 1), complex(inf, 1), complex(nan, nan)},
Test{complex(nan, 1), complex(inf, -1), complex(nan, nan)},
Test{complex(nan, 1), complex(inf, 2), complex(nan, nan)},
Test{complex(nan, 1), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, 1), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(nan, 1), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(nan, 1), complex(-inf, 0), complex(nan, nan)},
Test{complex(nan, 1), complex(-inf, 1), complex(nan, nan)},
Test{complex(nan, 1), complex(-inf, -1), complex(nan, nan)},
Test{complex(nan, 1), complex(-inf, 2), complex(nan, nan)},
Test{complex(nan, 1), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, 1), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(nan, 1), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(nan, -1), complex(0, 0), complex(nan, nan)},
Test{complex(nan, -1), complex(0, 1), complex(nan, nan)},
Test{complex(nan, -1), complex(0, -1), complex(nan, nan)},
Test{complex(nan, -1), complex(0, 2), complex(nan, nan)},
Test{complex(nan, -1), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, -1), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(nan, -1), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(nan, -1), complex(1, 0), complex(nan, nan)},
Test{complex(nan, -1), complex(1, 1), complex(nan, nan)},
Test{complex(nan, -1), complex(1, -1), complex(nan, nan)},
Test{complex(nan, -1), complex(1, 2), complex(nan, nan)},
Test{complex(nan, -1), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, -1), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(nan, -1), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(nan, -1), complex(-1, 0), complex(nan, nan)},
Test{complex(nan, -1), complex(-1, 1), complex(nan, nan)},
Test{complex(nan, -1), complex(-1, -1), complex(nan, nan)},
Test{complex(nan, -1), complex(-1, 2), complex(nan, nan)},
Test{complex(nan, -1), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, -1), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(nan, -1), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(nan, -1), complex(2, 0), complex(nan, nan)},
Test{complex(nan, -1), complex(2, 1), complex(nan, nan)},
Test{complex(nan, -1), complex(2, -1), complex(nan, nan)},
Test{complex(nan, -1), complex(2, 2), complex(nan, nan)},
Test{complex(nan, -1), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, -1), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(nan, -1), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(nan, -1), complex(nan, 0), complex(nan, nan)},
Test{complex(nan, -1), complex(nan, 1), complex(nan, nan)},
Test{complex(nan, -1), complex(nan, -1), complex(nan, nan)},
Test{complex(nan, -1), complex(nan, 2), complex(nan, nan)},
Test{complex(nan, -1), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, -1), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(nan, -1), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(nan, -1), complex(inf, 0), complex(nan, nan)},
Test{complex(nan, -1), complex(inf, 1), complex(nan, nan)},
Test{complex(nan, -1), complex(inf, -1), complex(nan, nan)},
Test{complex(nan, -1), complex(inf, 2), complex(nan, nan)},
Test{complex(nan, -1), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, -1), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(nan, -1), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(nan, -1), complex(-inf, 0), complex(nan, nan)},
Test{complex(nan, -1), complex(-inf, 1), complex(nan, nan)},
Test{complex(nan, -1), complex(-inf, -1), complex(nan, nan)},
Test{complex(nan, -1), complex(-inf, 2), complex(nan, nan)},
Test{complex(nan, -1), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, -1), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(nan, -1), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(nan, 2), complex(0, 0), complex(nan, nan)},
Test{complex(nan, 2), complex(0, 1), complex(nan, nan)},
Test{complex(nan, 2), complex(0, -1), complex(nan, nan)},
Test{complex(nan, 2), complex(0, 2), complex(nan, nan)},
Test{complex(nan, 2), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, 2), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(nan, 2), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(nan, 2), complex(1, 0), complex(nan, nan)},
Test{complex(nan, 2), complex(1, 1), complex(nan, nan)},
Test{complex(nan, 2), complex(1, -1), complex(nan, nan)},
Test{complex(nan, 2), complex(1, 2), complex(nan, nan)},
Test{complex(nan, 2), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, 2), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(nan, 2), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(nan, 2), complex(-1, 0), complex(nan, nan)},
Test{complex(nan, 2), complex(-1, 1), complex(nan, nan)},
Test{complex(nan, 2), complex(-1, -1), complex(nan, nan)},
Test{complex(nan, 2), complex(-1, 2), complex(nan, nan)},
Test{complex(nan, 2), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, 2), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(nan, 2), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(nan, 2), complex(2, 0), complex(nan, nan)},
Test{complex(nan, 2), complex(2, 1), complex(nan, nan)},
Test{complex(nan, 2), complex(2, -1), complex(nan, nan)},
Test{complex(nan, 2), complex(2, 2), complex(nan, nan)},
Test{complex(nan, 2), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, 2), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(nan, 2), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(nan, 2), complex(nan, 0), complex(nan, nan)},
Test{complex(nan, 2), complex(nan, 1), complex(nan, nan)},
Test{complex(nan, 2), complex(nan, -1), complex(nan, nan)},
Test{complex(nan, 2), complex(nan, 2), complex(nan, nan)},
Test{complex(nan, 2), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, 2), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(nan, 2), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(nan, 2), complex(inf, 0), complex(nan, nan)},
Test{complex(nan, 2), complex(inf, 1), complex(nan, nan)},
Test{complex(nan, 2), complex(inf, -1), complex(nan, nan)},
Test{complex(nan, 2), complex(inf, 2), complex(nan, nan)},
Test{complex(nan, 2), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, 2), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(nan, 2), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(nan, 2), complex(-inf, 0), complex(nan, nan)},
Test{complex(nan, 2), complex(-inf, 1), complex(nan, nan)},
Test{complex(nan, 2), complex(-inf, -1), complex(nan, nan)},
Test{complex(nan, 2), complex(-inf, 2), complex(nan, nan)},
Test{complex(nan, 2), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, 2), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(nan, 2), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(nan, nan), complex(0, 0), complex(nan, nan)},
Test{complex(nan, nan), complex(0, 1), complex(nan, nan)},
Test{complex(nan, nan), complex(0, -1), complex(nan, nan)},
Test{complex(nan, nan), complex(0, 2), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, -inf), complex(nan, nan)},
Test{complex(nan, nan), complex(1, 0), complex(nan, nan)},
Test{complex(nan, nan), complex(1, 1), complex(nan, nan)},
Test{complex(nan, nan), complex(1, -1), complex(nan, nan)},
Test{complex(nan, nan), complex(1, 2), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, -inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-1, 0), complex(nan, nan)},
Test{complex(nan, nan), complex(-1, 1), complex(nan, nan)},
Test{complex(nan, nan), complex(-1, -1), complex(nan, nan)},
Test{complex(nan, nan), complex(-1, 2), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, -inf), complex(nan, nan)},
Test{complex(nan, nan), complex(2, 0), complex(nan, nan)},
Test{complex(nan, nan), complex(2, 1), complex(nan, nan)},
Test{complex(nan, nan), complex(2, -1), complex(nan, nan)},
Test{complex(nan, nan), complex(2, 2), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, -inf), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, 0), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, 1), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, -1), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, 2), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, -inf), complex(nan, nan)},
Test{complex(nan, nan), complex(inf, 0), complex(nan, nan)},
Test{complex(nan, nan), complex(inf, 1), complex(nan, nan)},
Test{complex(nan, nan), complex(inf, -1), complex(nan, nan)},
Test{complex(nan, nan), complex(inf, 2), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, -inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-inf, 0), complex(nan, nan)},
Test{complex(nan, nan), complex(-inf, 1), complex(nan, nan)},
Test{complex(nan, nan), complex(-inf, -1), complex(nan, nan)},
Test{complex(nan, nan), complex(-inf, 2), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, -inf), complex(nan, nan)},
Test{complex(-nan, inf), complex(0, 0), complex(-nan, inf)},
Test{complex(-nan, inf), complex(0, 1), complex(inf, -nan)},
Test{complex(-nan, inf), complex(0, -1), complex(-inf, -nan)},
Test{complex(-nan, inf), complex(0, 2), complex(inf, -nan)},
Test{complex(-nan, inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(1, 0), complex(-nan, inf)},
Test{complex(-nan, inf), complex(1, 1), complex(inf, inf)},
Test{complex(-nan, inf), complex(1, -1), complex(-inf, inf)},
Test{complex(-nan, inf), complex(1, 2), complex(inf, inf)},
Test{complex(-nan, inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-1, 0), complex(-nan, -inf)},
Test{complex(-nan, inf), complex(-1, 1), complex(inf, -inf)},
Test{complex(-nan, inf), complex(-1, -1), complex(-inf, -inf)},
Test{complex(-nan, inf), complex(-1, 2), complex(inf, -inf)},
Test{complex(-nan, inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(2, 0), complex(-nan, inf)},
Test{complex(-nan, inf), complex(2, 1), complex(inf, inf)},
Test{complex(-nan, inf), complex(2, -1), complex(-inf, inf)},
Test{complex(-nan, inf), complex(2, 2), complex(inf, inf)},
Test{complex(-nan, inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(nan, 0), complex(nan, nan)},
Test{complex(-nan, inf), complex(nan, 1), complex(nan, nan)},
Test{complex(-nan, inf), complex(nan, -1), complex(nan, nan)},
Test{complex(-nan, inf), complex(nan, 2), complex(nan, nan)},
Test{complex(-nan, inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(inf, 0), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(inf, 1), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(inf, -1), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(inf, 2), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-inf, 0), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-inf, 1), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-inf, -1), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-inf, 2), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(0, 0), complex(-nan, -inf)},
Test{complex(-nan, -inf), complex(0, 1), complex(-inf, -nan)},
Test{complex(-nan, -inf), complex(0, -1), complex(inf, -nan)},
Test{complex(-nan, -inf), complex(0, 2), complex(-inf, -nan)},
Test{complex(-nan, -inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, -inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(1, 0), complex(-nan, -inf)},
Test{complex(-nan, -inf), complex(1, 1), complex(-inf, -inf)},
Test{complex(-nan, -inf), complex(1, -1), complex(inf, -inf)},
Test{complex(-nan, -inf), complex(1, 2), complex(-inf, -inf)},
Test{complex(-nan, -inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, -inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-1, 0), complex(-nan, inf)},
Test{complex(-nan, -inf), complex(-1, 1), complex(-inf, inf)},
Test{complex(-nan, -inf), complex(-1, -1), complex(inf, inf)},
Test{complex(-nan, -inf), complex(-1, 2), complex(-inf, inf)},
Test{complex(-nan, -inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, -inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(2, 0), complex(-nan, -inf)},
Test{complex(-nan, -inf), complex(2, 1), complex(-inf, -inf)},
Test{complex(-nan, -inf), complex(2, -1), complex(inf, -inf)},
Test{complex(-nan, -inf), complex(2, 2), complex(-inf, -inf)},
Test{complex(-nan, -inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, -inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(nan, 0), complex(nan, nan)},
Test{complex(-nan, -inf), complex(nan, 1), complex(nan, nan)},
Test{complex(-nan, -inf), complex(nan, -1), complex(nan, nan)},
Test{complex(-nan, -inf), complex(nan, 2), complex(nan, nan)},
Test{complex(-nan, -inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, -inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(inf, 0), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(inf, 1), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(inf, -1), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(inf, 2), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, -inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-inf, 0), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-inf, 1), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-inf, -1), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-inf, 2), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, -inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(inf, 0), complex(0, 0), complex(inf, -nan)},
Test{complex(inf, 0), complex(0, 1), complex(-nan, -inf)},
Test{complex(inf, 0), complex(0, -1), complex(-nan, inf)},
Test{complex(inf, 0), complex(0, 2), complex(-nan, -inf)},
Test{complex(inf, 0), complex(nan, nan), complex(nan, nan)},
Test{complex(inf, 0), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(inf, 0), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(inf, 0), complex(1, 0), complex(inf, -nan)},
Test{complex(inf, 0), complex(1, 1), complex(inf, -inf)},
Test{complex(inf, 0), complex(1, -1), complex(inf, inf)},
Test{complex(inf, 0), complex(1, 2), complex(inf, -inf)},
Test{complex(inf, 0), complex(nan, nan), complex(nan, nan)},
Test{complex(inf, 0), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(inf, 0), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(inf, 0), complex(-1, 0), complex(-inf, -nan)},
Test{complex(inf, 0), complex(-1, 1), complex(-inf, -inf)},
Test{complex(inf, 0), complex(-1, -1), complex(-inf, inf)},
Test{complex(inf, 0), complex(-1, 2), complex(-inf, -inf)},
Test{complex(inf, 0), complex(nan, nan), complex(nan, nan)},
Test{complex(inf, 0), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(inf, 0), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(inf, 0), complex(2, 0), complex(inf, -nan)},
Test{complex(inf, 0), complex(2, 1), complex(inf, -inf)},
Test{complex(inf, 0), complex(2, -1), complex(inf, inf)},
Test{complex(inf, 0), complex(2, 2), complex(inf, -inf)},
Test{complex(inf, 0), complex(nan, nan), complex(nan, nan)},
Test{complex(inf, 0), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(inf, 0), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(inf, 0), complex(nan, 0), complex(nan, nan)},
Test{complex(inf, 0), complex(nan, 1), complex(nan, nan)},
Test{complex(inf, 0), complex(nan, -1), complex(nan, nan)},
Test{complex(inf, 0), complex(nan, 2), complex(nan, nan)},
Test{complex(inf, 0), complex(nan, nan), complex(nan, nan)},
Test{complex(inf, 0), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(inf, 0), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(inf, 0), complex(inf, 0), complex(-nan, -nan)},
Test{complex(inf, 0), complex(inf, 1), complex(-nan, -nan)},
Test{complex(inf, 0), complex(inf, -1), complex(-nan, -nan)},
Test{complex(inf, 0), complex(inf, 2), complex(-nan, -nan)},
Test{complex(inf, 0), complex(nan, nan), complex(nan, nan)},
Test{complex(inf, 0), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(inf, 0), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(inf, 0), complex(-inf, 0), complex(-nan, -nan)},
Test{complex(inf, 0), complex(-inf, 1), complex(-nan, -nan)},
Test{complex(inf, 0), complex(-inf, -1), complex(-nan, -nan)},
Test{complex(inf, 0), complex(-inf, 2), complex(-nan, -nan)},
Test{complex(inf, 0), complex(nan, nan), complex(nan, nan)},
Test{complex(inf, 0), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(inf, 0), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(inf, 1), complex(0, 0), complex(inf, inf)},
Test{complex(inf, 1), complex(0, 1), complex(-nan, -inf)},
Test{complex(inf, 1), complex(0, -1), complex(-nan, inf)},
Test{complex(inf, 1), complex(0, 2), complex(-nan, -inf)},
Test{complex(inf, 1), complex(nan, nan), complex(nan, nan)},
Test{complex(inf, 1), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(inf, 1), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(inf, 1), complex(1, 0), complex(inf, -nan)},
Test{complex(inf, 1), complex(1, 1), complex(inf, -inf)},
Test{complex(inf, 1), complex(1, -1), complex(inf, inf)},
Test{complex(inf, 1), complex(1, 2), complex(inf, -inf)},
Test{complex(inf, 1), complex(nan, nan), complex(nan, nan)},
Test{complex(inf, 1), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(inf, 1), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(inf, 1), complex(-1, 0), complex(-inf, -nan)},
Test{complex(inf, 1), complex(-1, 1), complex(-inf, -inf)},
Test{complex(inf, 1), complex(-1, -1), complex(-inf, inf)},
Test{complex(inf, 1), complex(-1, 2), complex(-inf, -inf)},
Test{complex(inf, 1), complex(nan, nan), complex(nan, nan)},
Test{complex(inf, 1), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(inf, 1), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(inf, 1), complex(2, 0), complex(inf, -nan)},
Test{complex(inf, 1), complex(2, 1), complex(inf, -inf)},
Test{complex(inf, 1), complex(2, -1), complex(inf, inf)},
Test{complex(inf, 1), complex(2, 2), complex(inf, -inf)},
Test{complex(inf, 1), complex(nan, nan), complex(nan, nan)},
Test{complex(inf, 1), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(inf, 1), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(inf, 1), complex(nan, 0), complex(nan, nan)},
Test{complex(inf, 1), complex(nan, 1), complex(nan, nan)},
Test{complex(inf, 1), complex(nan, -1), complex(nan, nan)},
Test{complex(inf, 1), complex(nan, 2), complex(nan, nan)},
Test{complex(inf, 1), complex(nan, nan), complex(nan, nan)},
Test{complex(inf, 1), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(inf, 1), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(inf, 1), complex(inf, 0), complex(-nan, -nan)},
Test{complex(inf, 1), complex(inf, 1), complex(-nan, -nan)},
Test{complex(inf, 1), complex(inf, -1), complex(-nan, -nan)},
Test{complex(inf, 1), complex(inf, 2), complex(-nan, -nan)},
Test{complex(inf, 1), complex(nan, nan), complex(nan, nan)},
Test{complex(inf, 1), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(inf, 1), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(inf, 1), complex(-inf, 0), complex(-nan, -nan)},
Test{complex(inf, 1), complex(-inf, 1), complex(-nan, -nan)},
Test{complex(inf, 1), complex(-inf, -1), complex(-nan, -nan)},
Test{complex(inf, 1), complex(-inf, 2), complex(-nan, -nan)},
Test{complex(inf, 1), complex(nan, nan), complex(nan, nan)},
Test{complex(inf, 1), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(inf, 1), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(inf, -1), complex(0, 0), complex(inf, -inf)},
Test{complex(inf, -1), complex(0, 1), complex(-nan, -inf)},
Test{complex(inf, -1), complex(0, -1), complex(-nan, inf)},
Test{complex(inf, -1), complex(0, 2), complex(-nan, -inf)},
Test{complex(inf, -1), complex(nan, nan), complex(nan, nan)},
Test{complex(inf, -1), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(inf, -1), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(inf, -1), complex(1, 0), complex(inf, -nan)},
Test{complex(inf, -1), complex(1, 1), complex(inf, -inf)},
Test{complex(inf, -1), complex(1, -1), complex(inf, inf)},
Test{complex(inf, -1), complex(1, 2), complex(inf, -inf)},
Test{complex(inf, -1), complex(nan, nan), complex(nan, nan)},
Test{complex(inf, -1), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(inf, -1), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(inf, -1), complex(-1, 0), complex(-inf, -nan)},
Test{complex(inf, -1), complex(-1, 1), complex(-inf, -inf)},
Test{complex(inf, -1), complex(-1, -1), complex(-inf, inf)},
Test{complex(inf, -1), complex(-1, 2), complex(-inf, -inf)},
Test{complex(inf, -1), complex(nan, nan), complex(nan, nan)},
Test{complex(inf, -1), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(inf, -1), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(inf, -1), complex(2, 0), complex(inf, -nan)},
Test{complex(inf, -1), complex(2, 1), complex(inf, -inf)},
Test{complex(inf, -1), complex(2, -1), complex(inf, inf)},
Test{complex(inf, -1), complex(2, 2), complex(inf, -inf)},
Test{complex(inf, -1), complex(nan, nan), complex(nan, nan)},
Test{complex(inf, -1), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(inf, -1), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(inf, -1), complex(nan, 0), complex(nan, nan)},
Test{complex(inf, -1), complex(nan, 1), complex(nan, nan)},
Test{complex(inf, -1), complex(nan, -1), complex(nan, nan)},
Test{complex(inf, -1), complex(nan, 2), complex(nan, nan)},
Test{complex(inf, -1), complex(nan, nan), complex(nan, nan)},
Test{complex(inf, -1), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(inf, -1), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(inf, -1), complex(inf, 0), complex(-nan, -nan)},
Test{complex(inf, -1), complex(inf, 1), complex(-nan, -nan)},
Test{complex(inf, -1), complex(inf, -1), complex(-nan, -nan)},
Test{complex(inf, -1), complex(inf, 2), complex(-nan, -nan)},
Test{complex(inf, -1), complex(nan, nan), complex(nan, nan)},
Test{complex(inf, -1), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(inf, -1), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(inf, -1), complex(-inf, 0), complex(-nan, -nan)},
Test{complex(inf, -1), complex(-inf, 1), complex(-nan, -nan)},
Test{complex(inf, -1), complex(-inf, -1), complex(-nan, -nan)},
Test{complex(inf, -1), complex(-inf, 2), complex(-nan, -nan)},
Test{complex(inf, -1), complex(nan, nan), complex(nan, nan)},
Test{complex(inf, -1), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(inf, -1), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(inf, 2), complex(0, 0), complex(inf, inf)},
Test{complex(inf, 2), complex(0, 1), complex(-nan, -inf)},
Test{complex(inf, 2), complex(0, -1), complex(-nan, inf)},
Test{complex(inf, 2), complex(0, 2), complex(-nan, -inf)},
Test{complex(inf, 2), complex(nan, nan), complex(nan, nan)},
Test{complex(inf, 2), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(inf, 2), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(inf, 2), complex(1, 0), complex(inf, -nan)},
Test{complex(inf, 2), complex(1, 1), complex(inf, -inf)},
Test{complex(inf, 2), complex(1, -1), complex(inf, inf)},
Test{complex(inf, 2), complex(1, 2), complex(inf, -inf)},
Test{complex(inf, 2), complex(nan, nan), complex(nan, nan)},
Test{complex(inf, 2), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(inf, 2), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(inf, 2), complex(-1, 0), complex(-inf, -nan)},
Test{complex(inf, 2), complex(-1, 1), complex(-inf, -inf)},
Test{complex(inf, 2), complex(-1, -1), complex(-inf, inf)},
Test{complex(inf, 2), complex(-1, 2), complex(-inf, -inf)},
Test{complex(inf, 2), complex(nan, nan), complex(nan, nan)},
Test{complex(inf, 2), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(inf, 2), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(inf, 2), complex(2, 0), complex(inf, -nan)},
Test{complex(inf, 2), complex(2, 1), complex(inf, -inf)},
Test{complex(inf, 2), complex(2, -1), complex(inf, inf)},
Test{complex(inf, 2), complex(2, 2), complex(inf, -inf)},
Test{complex(inf, 2), complex(nan, nan), complex(nan, nan)},
Test{complex(inf, 2), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(inf, 2), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(inf, 2), complex(nan, 0), complex(nan, nan)},
Test{complex(inf, 2), complex(nan, 1), complex(nan, nan)},
Test{complex(inf, 2), complex(nan, -1), complex(nan, nan)},
Test{complex(inf, 2), complex(nan, 2), complex(nan, nan)},
Test{complex(inf, 2), complex(nan, nan), complex(nan, nan)},
Test{complex(inf, 2), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(inf, 2), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(inf, 2), complex(inf, 0), complex(-nan, -nan)},
Test{complex(inf, 2), complex(inf, 1), complex(-nan, -nan)},
Test{complex(inf, 2), complex(inf, -1), complex(-nan, -nan)},
Test{complex(inf, 2), complex(inf, 2), complex(-nan, -nan)},
Test{complex(inf, 2), complex(nan, nan), complex(nan, nan)},
Test{complex(inf, 2), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(inf, 2), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(inf, 2), complex(-inf, 0), complex(-nan, -nan)},
Test{complex(inf, 2), complex(-inf, 1), complex(-nan, -nan)},
Test{complex(inf, 2), complex(-inf, -1), complex(-nan, -nan)},
Test{complex(inf, 2), complex(-inf, 2), complex(-nan, -nan)},
Test{complex(inf, 2), complex(nan, nan), complex(nan, nan)},
Test{complex(inf, 2), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(inf, 2), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(nan, nan), complex(0, 0), complex(nan, nan)},
Test{complex(nan, nan), complex(0, 1), complex(nan, nan)},
Test{complex(nan, nan), complex(0, -1), complex(nan, nan)},
Test{complex(nan, nan), complex(0, 2), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, -inf), complex(nan, nan)},
Test{complex(nan, nan), complex(1, 0), complex(nan, nan)},
Test{complex(nan, nan), complex(1, 1), complex(nan, nan)},
Test{complex(nan, nan), complex(1, -1), complex(nan, nan)},
Test{complex(nan, nan), complex(1, 2), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, -inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-1, 0), complex(nan, nan)},
Test{complex(nan, nan), complex(-1, 1), complex(nan, nan)},
Test{complex(nan, nan), complex(-1, -1), complex(nan, nan)},
Test{complex(nan, nan), complex(-1, 2), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, -inf), complex(nan, nan)},
Test{complex(nan, nan), complex(2, 0), complex(nan, nan)},
Test{complex(nan, nan), complex(2, 1), complex(nan, nan)},
Test{complex(nan, nan), complex(2, -1), complex(nan, nan)},
Test{complex(nan, nan), complex(2, 2), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, -inf), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, 0), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, 1), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, -1), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, 2), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, -inf), complex(nan, nan)},
Test{complex(nan, nan), complex(inf, 0), complex(nan, nan)},
Test{complex(nan, nan), complex(inf, 1), complex(nan, nan)},
Test{complex(nan, nan), complex(inf, -1), complex(nan, nan)},
Test{complex(nan, nan), complex(inf, 2), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, -inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-inf, 0), complex(nan, nan)},
Test{complex(nan, nan), complex(-inf, 1), complex(nan, nan)},
Test{complex(nan, nan), complex(-inf, -1), complex(nan, nan)},
Test{complex(nan, nan), complex(-inf, 2), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, -inf), complex(nan, nan)},
Test{complex(-nan, inf), complex(0, 0), complex(-nan, inf)},
Test{complex(-nan, inf), complex(0, 1), complex(inf, -nan)},
Test{complex(-nan, inf), complex(0, -1), complex(-inf, -nan)},
Test{complex(-nan, inf), complex(0, 2), complex(inf, -nan)},
Test{complex(-nan, inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(1, 0), complex(-nan, inf)},
Test{complex(-nan, inf), complex(1, 1), complex(inf, inf)},
Test{complex(-nan, inf), complex(1, -1), complex(-inf, inf)},
Test{complex(-nan, inf), complex(1, 2), complex(inf, inf)},
Test{complex(-nan, inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-1, 0), complex(-nan, -inf)},
Test{complex(-nan, inf), complex(-1, 1), complex(inf, -inf)},
Test{complex(-nan, inf), complex(-1, -1), complex(-inf, -inf)},
Test{complex(-nan, inf), complex(-1, 2), complex(inf, -inf)},
Test{complex(-nan, inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(2, 0), complex(-nan, inf)},
Test{complex(-nan, inf), complex(2, 1), complex(inf, inf)},
Test{complex(-nan, inf), complex(2, -1), complex(-inf, inf)},
Test{complex(-nan, inf), complex(2, 2), complex(inf, inf)},
Test{complex(-nan, inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(nan, 0), complex(nan, nan)},
Test{complex(-nan, inf), complex(nan, 1), complex(nan, nan)},
Test{complex(-nan, inf), complex(nan, -1), complex(nan, nan)},
Test{complex(-nan, inf), complex(nan, 2), complex(nan, nan)},
Test{complex(-nan, inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(inf, 0), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(inf, 1), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(inf, -1), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(inf, 2), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-inf, 0), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-inf, 1), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-inf, -1), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-inf, 2), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(0, 0), complex(-nan, -inf)},
Test{complex(-nan, -inf), complex(0, 1), complex(-inf, -nan)},
Test{complex(-nan, -inf), complex(0, -1), complex(inf, -nan)},
Test{complex(-nan, -inf), complex(0, 2), complex(-inf, -nan)},
Test{complex(-nan, -inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, -inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(1, 0), complex(-nan, -inf)},
Test{complex(-nan, -inf), complex(1, 1), complex(-inf, -inf)},
Test{complex(-nan, -inf), complex(1, -1), complex(inf, -inf)},
Test{complex(-nan, -inf), complex(1, 2), complex(-inf, -inf)},
Test{complex(-nan, -inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, -inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-1, 0), complex(-nan, inf)},
Test{complex(-nan, -inf), complex(-1, 1), complex(-inf, inf)},
Test{complex(-nan, -inf), complex(-1, -1), complex(inf, inf)},
Test{complex(-nan, -inf), complex(-1, 2), complex(-inf, inf)},
Test{complex(-nan, -inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, -inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(2, 0), complex(-nan, -inf)},
Test{complex(-nan, -inf), complex(2, 1), complex(-inf, -inf)},
Test{complex(-nan, -inf), complex(2, -1), complex(inf, -inf)},
Test{complex(-nan, -inf), complex(2, 2), complex(-inf, -inf)},
Test{complex(-nan, -inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, -inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(nan, 0), complex(nan, nan)},
Test{complex(-nan, -inf), complex(nan, 1), complex(nan, nan)},
Test{complex(-nan, -inf), complex(nan, -1), complex(nan, nan)},
Test{complex(-nan, -inf), complex(nan, 2), complex(nan, nan)},
Test{complex(-nan, -inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, -inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(inf, 0), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(inf, 1), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(inf, -1), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(inf, 2), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, -inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-inf, 0), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-inf, 1), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-inf, -1), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-inf, 2), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, -inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-inf, 0), complex(0, 0), complex(-inf, -nan)},
Test{complex(-inf, 0), complex(0, 1), complex(-nan, inf)},
Test{complex(-inf, 0), complex(0, -1), complex(-nan, -inf)},
Test{complex(-inf, 0), complex(0, 2), complex(-nan, inf)},
Test{complex(-inf, 0), complex(nan, nan), complex(nan, nan)},
Test{complex(-inf, 0), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-inf, 0), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-inf, 0), complex(1, 0), complex(-inf, -nan)},
Test{complex(-inf, 0), complex(1, 1), complex(-inf, inf)},
Test{complex(-inf, 0), complex(1, -1), complex(-inf, -inf)},
Test{complex(-inf, 0), complex(1, 2), complex(-inf, inf)},
Test{complex(-inf, 0), complex(nan, nan), complex(nan, nan)},
Test{complex(-inf, 0), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-inf, 0), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-inf, 0), complex(-1, 0), complex(inf, -nan)},
Test{complex(-inf, 0), complex(-1, 1), complex(inf, inf)},
Test{complex(-inf, 0), complex(-1, -1), complex(inf, -inf)},
Test{complex(-inf, 0), complex(-1, 2), complex(inf, inf)},
Test{complex(-inf, 0), complex(nan, nan), complex(nan, nan)},
Test{complex(-inf, 0), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-inf, 0), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-inf, 0), complex(2, 0), complex(-inf, -nan)},
Test{complex(-inf, 0), complex(2, 1), complex(-inf, inf)},
Test{complex(-inf, 0), complex(2, -1), complex(-inf, -inf)},
Test{complex(-inf, 0), complex(2, 2), complex(-inf, inf)},
Test{complex(-inf, 0), complex(nan, nan), complex(nan, nan)},
Test{complex(-inf, 0), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-inf, 0), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-inf, 0), complex(nan, 0), complex(nan, nan)},
Test{complex(-inf, 0), complex(nan, 1), complex(nan, nan)},
Test{complex(-inf, 0), complex(nan, -1), complex(nan, nan)},
Test{complex(-inf, 0), complex(nan, 2), complex(nan, nan)},
Test{complex(-inf, 0), complex(nan, nan), complex(nan, nan)},
Test{complex(-inf, 0), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-inf, 0), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-inf, 0), complex(inf, 0), complex(-nan, -nan)},
Test{complex(-inf, 0), complex(inf, 1), complex(-nan, -nan)},
Test{complex(-inf, 0), complex(inf, -1), complex(-nan, -nan)},
Test{complex(-inf, 0), complex(inf, 2), complex(-nan, -nan)},
Test{complex(-inf, 0), complex(nan, nan), complex(nan, nan)},
Test{complex(-inf, 0), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-inf, 0), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-inf, 0), complex(-inf, 0), complex(-nan, -nan)},
Test{complex(-inf, 0), complex(-inf, 1), complex(-nan, -nan)},
Test{complex(-inf, 0), complex(-inf, -1), complex(-nan, -nan)},
Test{complex(-inf, 0), complex(-inf, 2), complex(-nan, -nan)},
Test{complex(-inf, 0), complex(nan, nan), complex(nan, nan)},
Test{complex(-inf, 0), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-inf, 0), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-inf, 1), complex(0, 0), complex(-inf, inf)},
Test{complex(-inf, 1), complex(0, 1), complex(-nan, inf)},
Test{complex(-inf, 1), complex(0, -1), complex(-nan, -inf)},
Test{complex(-inf, 1), complex(0, 2), complex(-nan, inf)},
Test{complex(-inf, 1), complex(nan, nan), complex(nan, nan)},
Test{complex(-inf, 1), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-inf, 1), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-inf, 1), complex(1, 0), complex(-inf, -nan)},
Test{complex(-inf, 1), complex(1, 1), complex(-inf, inf)},
Test{complex(-inf, 1), complex(1, -1), complex(-inf, -inf)},
Test{complex(-inf, 1), complex(1, 2), complex(-inf, inf)},
Test{complex(-inf, 1), complex(nan, nan), complex(nan, nan)},
Test{complex(-inf, 1), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-inf, 1), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-inf, 1), complex(-1, 0), complex(inf, -nan)},
Test{complex(-inf, 1), complex(-1, 1), complex(inf, inf)},
Test{complex(-inf, 1), complex(-1, -1), complex(inf, -inf)},
Test{complex(-inf, 1), complex(-1, 2), complex(inf, inf)},
Test{complex(-inf, 1), complex(nan, nan), complex(nan, nan)},
Test{complex(-inf, 1), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-inf, 1), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-inf, 1), complex(2, 0), complex(-inf, -nan)},
Test{complex(-inf, 1), complex(2, 1), complex(-inf, inf)},
Test{complex(-inf, 1), complex(2, -1), complex(-inf, -inf)},
Test{complex(-inf, 1), complex(2, 2), complex(-inf, inf)},
Test{complex(-inf, 1), complex(nan, nan), complex(nan, nan)},
Test{complex(-inf, 1), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-inf, 1), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-inf, 1), complex(nan, 0), complex(nan, nan)},
Test{complex(-inf, 1), complex(nan, 1), complex(nan, nan)},
Test{complex(-inf, 1), complex(nan, -1), complex(nan, nan)},
Test{complex(-inf, 1), complex(nan, 2), complex(nan, nan)},
Test{complex(-inf, 1), complex(nan, nan), complex(nan, nan)},
Test{complex(-inf, 1), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-inf, 1), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-inf, 1), complex(inf, 0), complex(-nan, -nan)},
Test{complex(-inf, 1), complex(inf, 1), complex(-nan, -nan)},
Test{complex(-inf, 1), complex(inf, -1), complex(-nan, -nan)},
Test{complex(-inf, 1), complex(inf, 2), complex(-nan, -nan)},
Test{complex(-inf, 1), complex(nan, nan), complex(nan, nan)},
Test{complex(-inf, 1), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-inf, 1), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-inf, 1), complex(-inf, 0), complex(-nan, -nan)},
Test{complex(-inf, 1), complex(-inf, 1), complex(-nan, -nan)},
Test{complex(-inf, 1), complex(-inf, -1), complex(-nan, -nan)},
Test{complex(-inf, 1), complex(-inf, 2), complex(-nan, -nan)},
Test{complex(-inf, 1), complex(nan, nan), complex(nan, nan)},
Test{complex(-inf, 1), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-inf, 1), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-inf, -1), complex(0, 0), complex(-inf, -inf)},
Test{complex(-inf, -1), complex(0, 1), complex(-nan, inf)},
Test{complex(-inf, -1), complex(0, -1), complex(-nan, -inf)},
Test{complex(-inf, -1), complex(0, 2), complex(-nan, inf)},
Test{complex(-inf, -1), complex(nan, nan), complex(nan, nan)},
Test{complex(-inf, -1), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-inf, -1), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-inf, -1), complex(1, 0), complex(-inf, -nan)},
Test{complex(-inf, -1), complex(1, 1), complex(-inf, inf)},
Test{complex(-inf, -1), complex(1, -1), complex(-inf, -inf)},
Test{complex(-inf, -1), complex(1, 2), complex(-inf, inf)},
Test{complex(-inf, -1), complex(nan, nan), complex(nan, nan)},
Test{complex(-inf, -1), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-inf, -1), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-inf, -1), complex(-1, 0), complex(inf, -nan)},
Test{complex(-inf, -1), complex(-1, 1), complex(inf, inf)},
Test{complex(-inf, -1), complex(-1, -1), complex(inf, -inf)},
Test{complex(-inf, -1), complex(-1, 2), complex(inf, inf)},
Test{complex(-inf, -1), complex(nan, nan), complex(nan, nan)},
Test{complex(-inf, -1), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-inf, -1), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-inf, -1), complex(2, 0), complex(-inf, -nan)},
Test{complex(-inf, -1), complex(2, 1), complex(-inf, inf)},
Test{complex(-inf, -1), complex(2, -1), complex(-inf, -inf)},
Test{complex(-inf, -1), complex(2, 2), complex(-inf, inf)},
Test{complex(-inf, -1), complex(nan, nan), complex(nan, nan)},
Test{complex(-inf, -1), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-inf, -1), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-inf, -1), complex(nan, 0), complex(nan, nan)},
Test{complex(-inf, -1), complex(nan, 1), complex(nan, nan)},
Test{complex(-inf, -1), complex(nan, -1), complex(nan, nan)},
Test{complex(-inf, -1), complex(nan, 2), complex(nan, nan)},
Test{complex(-inf, -1), complex(nan, nan), complex(nan, nan)},
Test{complex(-inf, -1), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-inf, -1), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-inf, -1), complex(inf, 0), complex(-nan, -nan)},
Test{complex(-inf, -1), complex(inf, 1), complex(-nan, -nan)},
Test{complex(-inf, -1), complex(inf, -1), complex(-nan, -nan)},
Test{complex(-inf, -1), complex(inf, 2), complex(-nan, -nan)},
Test{complex(-inf, -1), complex(nan, nan), complex(nan, nan)},
Test{complex(-inf, -1), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-inf, -1), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-inf, -1), complex(-inf, 0), complex(-nan, -nan)},
Test{complex(-inf, -1), complex(-inf, 1), complex(-nan, -nan)},
Test{complex(-inf, -1), complex(-inf, -1), complex(-nan, -nan)},
Test{complex(-inf, -1), complex(-inf, 2), complex(-nan, -nan)},
Test{complex(-inf, -1), complex(nan, nan), complex(nan, nan)},
Test{complex(-inf, -1), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-inf, -1), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-inf, 2), complex(0, 0), complex(-inf, inf)},
Test{complex(-inf, 2), complex(0, 1), complex(-nan, inf)},
Test{complex(-inf, 2), complex(0, -1), complex(-nan, -inf)},
Test{complex(-inf, 2), complex(0, 2), complex(-nan, inf)},
Test{complex(-inf, 2), complex(nan, nan), complex(nan, nan)},
Test{complex(-inf, 2), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-inf, 2), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-inf, 2), complex(1, 0), complex(-inf, -nan)},
Test{complex(-inf, 2), complex(1, 1), complex(-inf, inf)},
Test{complex(-inf, 2), complex(1, -1), complex(-inf, -inf)},
Test{complex(-inf, 2), complex(1, 2), complex(-inf, inf)},
Test{complex(-inf, 2), complex(nan, nan), complex(nan, nan)},
Test{complex(-inf, 2), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-inf, 2), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-inf, 2), complex(-1, 0), complex(inf, -nan)},
Test{complex(-inf, 2), complex(-1, 1), complex(inf, inf)},
Test{complex(-inf, 2), complex(-1, -1), complex(inf, -inf)},
Test{complex(-inf, 2), complex(-1, 2), complex(inf, inf)},
Test{complex(-inf, 2), complex(nan, nan), complex(nan, nan)},
Test{complex(-inf, 2), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-inf, 2), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-inf, 2), complex(2, 0), complex(-inf, -nan)},
Test{complex(-inf, 2), complex(2, 1), complex(-inf, inf)},
Test{complex(-inf, 2), complex(2, -1), complex(-inf, -inf)},
Test{complex(-inf, 2), complex(2, 2), complex(-inf, inf)},
Test{complex(-inf, 2), complex(nan, nan), complex(nan, nan)},
Test{complex(-inf, 2), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-inf, 2), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-inf, 2), complex(nan, 0), complex(nan, nan)},
Test{complex(-inf, 2), complex(nan, 1), complex(nan, nan)},
Test{complex(-inf, 2), complex(nan, -1), complex(nan, nan)},
Test{complex(-inf, 2), complex(nan, 2), complex(nan, nan)},
Test{complex(-inf, 2), complex(nan, nan), complex(nan, nan)},
Test{complex(-inf, 2), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-inf, 2), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-inf, 2), complex(inf, 0), complex(-nan, -nan)},
Test{complex(-inf, 2), complex(inf, 1), complex(-nan, -nan)},
Test{complex(-inf, 2), complex(inf, -1), complex(-nan, -nan)},
Test{complex(-inf, 2), complex(inf, 2), complex(-nan, -nan)},
Test{complex(-inf, 2), complex(nan, nan), complex(nan, nan)},
Test{complex(-inf, 2), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-inf, 2), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-inf, 2), complex(-inf, 0), complex(-nan, -nan)},
Test{complex(-inf, 2), complex(-inf, 1), complex(-nan, -nan)},
Test{complex(-inf, 2), complex(-inf, -1), complex(-nan, -nan)},
Test{complex(-inf, 2), complex(-inf, 2), complex(-nan, -nan)},
Test{complex(-inf, 2), complex(nan, nan), complex(nan, nan)},
Test{complex(-inf, 2), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-inf, 2), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(nan, nan), complex(0, 0), complex(nan, nan)},
Test{complex(nan, nan), complex(0, 1), complex(nan, nan)},
Test{complex(nan, nan), complex(0, -1), complex(nan, nan)},
Test{complex(nan, nan), complex(0, 2), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, -inf), complex(nan, nan)},
Test{complex(nan, nan), complex(1, 0), complex(nan, nan)},
Test{complex(nan, nan), complex(1, 1), complex(nan, nan)},
Test{complex(nan, nan), complex(1, -1), complex(nan, nan)},
Test{complex(nan, nan), complex(1, 2), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, -inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-1, 0), complex(nan, nan)},
Test{complex(nan, nan), complex(-1, 1), complex(nan, nan)},
Test{complex(nan, nan), complex(-1, -1), complex(nan, nan)},
Test{complex(nan, nan), complex(-1, 2), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, -inf), complex(nan, nan)},
Test{complex(nan, nan), complex(2, 0), complex(nan, nan)},
Test{complex(nan, nan), complex(2, 1), complex(nan, nan)},
Test{complex(nan, nan), complex(2, -1), complex(nan, nan)},
Test{complex(nan, nan), complex(2, 2), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, -inf), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, 0), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, 1), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, -1), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, 2), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, -inf), complex(nan, nan)},
Test{complex(nan, nan), complex(inf, 0), complex(nan, nan)},
Test{complex(nan, nan), complex(inf, 1), complex(nan, nan)},
Test{complex(nan, nan), complex(inf, -1), complex(nan, nan)},
Test{complex(nan, nan), complex(inf, 2), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, -inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-inf, 0), complex(nan, nan)},
Test{complex(nan, nan), complex(-inf, 1), complex(nan, nan)},
Test{complex(nan, nan), complex(-inf, -1), complex(nan, nan)},
Test{complex(nan, nan), complex(-inf, 2), complex(nan, nan)},
Test{complex(nan, nan), complex(nan, nan), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, inf), complex(nan, nan)},
Test{complex(nan, nan), complex(-nan, -inf), complex(nan, nan)},
Test{complex(-nan, inf), complex(0, 0), complex(-nan, inf)},
Test{complex(-nan, inf), complex(0, 1), complex(inf, -nan)},
Test{complex(-nan, inf), complex(0, -1), complex(-inf, -nan)},
Test{complex(-nan, inf), complex(0, 2), complex(inf, -nan)},
Test{complex(-nan, inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(1, 0), complex(-nan, inf)},
Test{complex(-nan, inf), complex(1, 1), complex(inf, inf)},
Test{complex(-nan, inf), complex(1, -1), complex(-inf, inf)},
Test{complex(-nan, inf), complex(1, 2), complex(inf, inf)},
Test{complex(-nan, inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-1, 0), complex(-nan, -inf)},
Test{complex(-nan, inf), complex(-1, 1), complex(inf, -inf)},
Test{complex(-nan, inf), complex(-1, -1), complex(-inf, -inf)},
Test{complex(-nan, inf), complex(-1, 2), complex(inf, -inf)},
Test{complex(-nan, inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(2, 0), complex(-nan, inf)},
Test{complex(-nan, inf), complex(2, 1), complex(inf, inf)},
Test{complex(-nan, inf), complex(2, -1), complex(-inf, inf)},
Test{complex(-nan, inf), complex(2, 2), complex(inf, inf)},
Test{complex(-nan, inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(nan, 0), complex(nan, nan)},
Test{complex(-nan, inf), complex(nan, 1), complex(nan, nan)},
Test{complex(-nan, inf), complex(nan, -1), complex(nan, nan)},
Test{complex(-nan, inf), complex(nan, 2), complex(nan, nan)},
Test{complex(-nan, inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(inf, 0), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(inf, 1), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(inf, -1), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(inf, 2), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-inf, 0), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-inf, 1), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-inf, -1), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-inf, 2), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(0, 0), complex(-nan, -inf)},
Test{complex(-nan, -inf), complex(0, 1), complex(-inf, -nan)},
Test{complex(-nan, -inf), complex(0, -1), complex(inf, -nan)},
Test{complex(-nan, -inf), complex(0, 2), complex(-inf, -nan)},
Test{complex(-nan, -inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, -inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(1, 0), complex(-nan, -inf)},
Test{complex(-nan, -inf), complex(1, 1), complex(-inf, -inf)},
Test{complex(-nan, -inf), complex(1, -1), complex(inf, -inf)},
Test{complex(-nan, -inf), complex(1, 2), complex(-inf, -inf)},
Test{complex(-nan, -inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, -inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-1, 0), complex(-nan, inf)},
Test{complex(-nan, -inf), complex(-1, 1), complex(-inf, inf)},
Test{complex(-nan, -inf), complex(-1, -1), complex(inf, inf)},
Test{complex(-nan, -inf), complex(-1, 2), complex(-inf, inf)},
Test{complex(-nan, -inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, -inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(2, 0), complex(-nan, -inf)},
Test{complex(-nan, -inf), complex(2, 1), complex(-inf, -inf)},
Test{complex(-nan, -inf), complex(2, -1), complex(inf, -inf)},
Test{complex(-nan, -inf), complex(2, 2), complex(-inf, -inf)},
Test{complex(-nan, -inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, -inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(nan, 0), complex(nan, nan)},
Test{complex(-nan, -inf), complex(nan, 1), complex(nan, nan)},
Test{complex(-nan, -inf), complex(nan, -1), complex(nan, nan)},
Test{complex(-nan, -inf), complex(nan, 2), complex(nan, nan)},
Test{complex(-nan, -inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, -inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(inf, 0), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(inf, 1), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(inf, -1), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(inf, 2), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, -inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-nan, -inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-inf, 0), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-inf, 1), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-inf, -1), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-inf, 2), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(nan, nan), complex(nan, nan)},
Test{complex(-nan, -inf), complex(-nan, inf), complex(-nan, -nan)},
Test{complex(-nan, -inf), complex(-nan, -inf), complex(-nan, -nan)},
}