%20%E3%82%92%E4%BF%AE%E6%AD%A3%E3%81%99%E3%82%8B%E3%81%AB%E3%81%AF%E3%81%A9%E3%81%86%E3%81%99%E3%82%8C%E3%81%B0%E3%81%84%E3%81%84%E3%81%A7%E3%81%97%E3%82%87%E3%81%86%E3%81%8B%3F.png)
\begin{figure}[H]
\centering
\begin{tikzpicture}
\begin{axis}[xmax=8,ymax=3,
smooth,
restrict y to domain=0:4,
axis lines = left]
\addplot[red] {5 * x * 1 / pow(e,x) + 1}; \end{axis}
\end{tikzpicture}
\end{figure}
しかし、それは間違っています。正しいのは次のようになります。
修正する必要があるもの:
- x = 1 ではなく y = 0 から始まる
- 曲線をx = 8まで伸ばし、途中で止まらないようにします
以上です。グリッドやその他の変更は不要です。ご協力いただければ幸いです。
答え1
回答者が出発点を持てるように、常にコンパイル可能なコードを投稿してください。
domain
プロットしたいものが必要です。
\documentclass{article}
\usepackage{pgfplots}
\pgfplotsset{compat=1.17}
\begin{document}
\begin{tikzpicture}
\begin{axis}[%
domain=-1:8,
xmin=-1, xmax=8,
ymin=0, ymax=3,
smooth,
axis lines = left]
\addplot[red] {5 * x * 1 / pow(e,x) + 1};
\end{axis}
\end{tikzpicture}
\end{document}