Closed Beakerboy closed 3 years ago
Maybe I was too quick to merge it.
This test case is producing a complex with NAN + NANi
.
[
['r' => 0, 'i' => 0],
['r' => 0, 'i' => 0],
['r' => 1, 'i' => 0],
],
R thinks it is this:
> complex(real=0, imaginary=0)**complex(real=0, imaginary=0)
[1] 1+0i
And Python:
In [115]: complex(0,0)**complex(0,0)
Out[115]: (1+0j)
In algebra and combinatorics, the generally agreed upon value is 0^0 = 1, whereas in mathematical analysis, the expression is sometimes left undefined. Computer programming languages and software also have differing ways of handling this expression.
Thanks for this pull request. Looks good. I'll fix the link.