Ejemplo n.º 1
0
    def _sup(self):
        # We use max_ so that sup is meaningful in combination with symbolic
        # end points.
        from sympy.functions.elementary.miscellaneous import max_

        sup = self.args[0].sup
        for set in self.args[1:]:
            sup = max_(sup, set.sup)
        return sup
Ejemplo n.º 2
0
def test_max():
    assert max_(5, 4) == 5
Ejemplo n.º 3
0
def test_max():
    assert max_(5, 4) == 5