(x, y)
| 255 | |
| 256 | |
| 257 | def identical(x, y): |
| 258 | if math.isnan(x) or math.isnan(y): |
| 259 | if math.isnan(x) == math.isnan(y): |
| 260 | return |
| 261 | elif x == y and (x != 0.0 or math.copysign(1.0, x) == math.copysign(1.0, y)): |
| 262 | return |
| 263 | raise SyntaxError(f"{x} not identical to {y}") |
| 264 | |
| 265 | |
| 266 | invalid_inputs = [ |