def _sympysage_lgamma(self): """ EXAMPLES:: sage: from sympy import Symbol, loggamma sage: assert log_gamma(x)._sympy_() == loggamma(Symbol('x')) sage: assert log_gamma(x) == loggamma(Symbol('x'))._sage_() """ from sage.functions.gamma import log_gamma return log_gamma(self.args[0]._sage_())