def METHOD_NAME(self, expr):
    PREC = precedence(expr)
    if expr.exp == -1:
        return '1/%s' % (self.parenthesize(expr.base, PREC))
    elif expr.exp == 0.5:
        return 'sqrt(%s)' % self._print(expr.base)
    elif expr.base == 2:
        return 'exp2(%s)' % self._print(expr.exp)
    else:
        return '%s^%s' % (self.parenthesize(expr.base, PREC),
                 self.parenthesize(expr.exp, PREC))