怎样绘制指数函数图象?

发布于 2022-07-03 22:09:48

QQ截图20220703215105.jpg

同样的代码,在window下安装的CTex绘制2^x的图象不对(如上图),但在Online LaTeX Editor 下绘制的2^x的图象(如下图)又是正确的,请问怎样在WinEdt 下绘制2^x的图象?
QQ截图20220703215407.jpg

\documentclass{book}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[scale=0.4]
        \draw[->,>=stealth](-5,0)--(3,0) node at (3,-0.4){$x$};
        \draw[->,>=stealth](0,-2)--(0,4) node at (-0.4,3.9){$y$};
        \draw[domain=-2:1.8,smooth] plot(\x,{2^\x});
\end{tikzpicture}
\end{document}

查看更多

关注者
0
被浏览
976
1 个回答
LaTeXStudio
LaTeXStudio 2022-07-04
这家伙很懒,什么也没写!

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览