Exemplo n.º 1
0
 public bool Equals(Complex other)
 {
     return(Re.Equals(other.Re) && Im.Equals(other.Im));
 }
Exemplo n.º 2
0
 protected bool Equals(Complex other)
 {
     return(Re.Equals(other.Re) && Im.Equals(other.Im));
 }
Exemplo n.º 3
0
 /// <summary> Визначає чи рівні два числа. </summary>
 /// <param name="other"> Число, яке порівнюється з даним. </param>
 /// <returns> true - рівні, false - не рівні. </returns>
 public bool Equals(double other)
 {
     return(Re.Equals(other) && Im.Equals(0d));
 }