public IPNumber Sqr() { IPNumber tmp = new IPNumber(this); tmp.n = this.n * this.n; return(tmp); }
public IPNumber Revers() { IPNumber tmp = new IPNumber(this); tmp.n = 1 / this.n; return(tmp); }
public IPNumber Mult(IPNumber d) { IPNumber tmp = new IPNumber(d); if (d.b != this.b || d.c != this.c) { tmp.n = 0.0; return(tmp); } tmp.n = this.n * d.n; return(tmp); }
public IPNumber(IPNumber d) { n = d.n; b = d.b; c = d.c; }