Ejemplo n.º 1
0
 public Rat QuotRat(Rat r) => new Rat(this.num * r.den, this.den * r.num);
Ejemplo n.º 2
0
 public Rat SubRat(Rat r) => new Rat(this.num * r.den - r.num * this.den, this.den * r.den);
Ejemplo n.º 3
0
 public Rat MultRat(Rat r) => new Rat(this.num * r.num, this.den * r.den);
Ejemplo n.º 4
0
 public Rat SumRat(Rat r) => new Rat(this.num * r.den + r.num * this.den, this.den * r.den);