def _print_Pow(self, expr):
        prec = precedence(expr)

        if expr.exp == -1:
            return '1/%s' % (self.parenthesize(expr.base, prec))
        else:
            return '%s^%s' % (self.parenthesize(expr.base, prec),
                              self.parenthesize(expr.exp, prec))
dataset/ETHPy150Open saullocastro/mapy/mapy/sympytools/mathematica_printer.py/MathematicaPrinter._print_Pow/original