Q=VC(1-e^\frac{-t}{RC})
是否可以绘制此函数 Qt 图?V 和 C 是未知常数。
答案1
像这样:
\documentclass[tikz,border=1cm]{standalone}
\begin{document}
\begin{tikzpicture}
\draw[very thin,color=gray!15,step=1] (0,0) grid (12,4);
\draw[-latex] (-0.2,0) -- (13,0) node[right] () {$t {(\sec)}$};
\draw[-latex] (0,-.3) -- (0,4) node[above] {$Q (\times 10^{-5}$ C)};
\foreach \i in {0,4,...,13}
\draw[gray!65] (\i,.1)--(\i,-.1) node[below] {$\i$};
\foreach \i in {0,1,...,4}
\draw[gray!65] (.1,\i)--(-.1,\i) node[left] {$\i$};
\draw[cyan,line width=3pt,domain=0:13] plot(\x,{3.75*(1-exp(-\x/3))}) ;
\draw[red,dashed,line width=.5pt] (13,3.75)--(0,3.75) node[left] () {3.75};
\end{tikzpicture}
\end{document}
输出:
该情节是基于以下假设完成的:R= 2.0 MΩ,C= 1.5 μF,五0 =25伏。