Ejemplo n.º 1
0
 void GcdEx()
 {
     {
         Assert.Equal((1, -12, 17), (MathX.GcdEx(41, 29, out var x, out var y), x, y));
         Assert.Equal((1, -12, 17), MathX.GcdEx(41, 29));
     }
     {
         Assert.Equal((1, 17, -12), (MathX.GcdEx(29, 41, out var x, out var y), x, y));
         Assert.Equal((1, 17, -12), MathX.GcdEx(29, 41));
     }
 }