Currently: new Complex(Infinity).equals(Infinity) === false.
For reference:
In JavaScript: Infinity === Infinity is true
In Matlab both Inf == Inf and (Inf + Inf*i) == (Inf + Inf*i) aretrue
In Wolfram 'Infinity == Infinityistrueand it refuses to answerComplexInfinity == ComplexInfinity`
The c++ standard complex library compares the real and imaginary parts of the number.
Currently:
new Complex(Infinity).equals(Infinity) === false.For reference:
In JavaScript:
Infinity === InfinityistrueIn Matlab both
Inf == Infand(Inf + Inf*i) == (Inf + Inf*i)aretrueIn Wolfram 'Infinity == Infinity
istrueand it refuses to answerComplexInfinity == ComplexInfinity`The c++ standard complex library compares the real and imaginary parts of the number.