javascript 0 -0
class Complex{
constructor(real,imag){
this.real=real;
this.imag=imag;
}
get phase(){
return Math.atan(this.imag/this.real)+(this.real<0?Math.PI:0);
}
}
1/0==Infinity;//true
1/-0==-Infinity;//true
0==-0;//true
Infinity==-Infinity;//false
(new Complex(0,-1).phase==new Complex(-0,-1).phase)==debug_for_one_more_hour;//true