Exemplo n.º 1
0
    def test_abs(self):
        from pyaudi import gdual_double as gdual
        from pyaudi import abs as gd_abs

        x = gdual(1.1, "x", 6)
        y = gdual(1.2, "y", 6)

        self.assertEqual(x + y, gd_abs(x + y))
        self.assertEqual(-(x + y), -gd_abs(x + y))
Exemplo n.º 2
0
    def test_abs(self):
        from pyaudi import gdual_double as gdual
        from pyaudi import abs as gd_abs

        x = gdual(1.1, "x",6);
        y = gdual(1.2, "y",6);

        self.assertEqual(x+y, gd_abs(x+y))
        self.assertEqual(-(x + y), - gd_abs(x+y))