![我如何定义/绘制 Gamma 函数以按照此图写入它](https://linux22.com/image/479963/%E6%88%91%E5%A6%82%E4%BD%95%E5%AE%9A%E4%B9%89%2F%E7%BB%98%E5%88%B6%20Gamma%20%E5%87%BD%E6%95%B0%E4%BB%A5%E6%8C%89%E7%85%A7%E6%AD%A4%E5%9B%BE%E5%86%99%E5%85%A5%E5%AE%83.png)
答案1
以下可能的解决方案之一是否可以满足您的格式化需求?
我必须承认我不知道这些表达式与(传统定义的)伽马函数有什么共同之处。
\documentclass{article}
\usepackage{array}
% The following two macros must be used in math mode:
\newcommand\solutionA[1]{%
\mathop{}\!\begin{array}[b]{|c}\hline #1 \end{array}}
\newcommand\solutionB[1]{%
\mathop{}\!\begin{array}[b]{|@{\,}c@{\,}}\hline #1 \end{array}}
%% (The `\mathop{}\!` particles serve to insert a bit of whitespace, if needed.
%% Many thanks to @egreg for providing this suggestion.)
\begin{document}
$\solutionA{1+p}$ $\solutionB{1+p}$
\end{document}