答案1
该代码可以作为您的起点。
\documentclass[a4paper,12pt]{article}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
ymin = -10,
ymax = 30,
xmin = -5,
xmax = 2,
axis x line=center,
axis y line=center,
]
\addplot[samples at={-5,...,0}, only marks]{(x+e^(-x))};
\addplot[samples at={-5,...,0}, only marks]{(1+0.5*e^(-0.5*x))};
\end{axis}
\end{tikzpicture}
\end{document}