在 LaTeX 中繪製一些數學插圖

在 LaTeX 中繪製一些數學插圖

我對 LaTeX 比較陌生,我想知道如何在 LaTeX 中產生這個圖表?有特別推薦的軟體嗎?在此輸入影像描述

提前致謝。

答案1

用 Ti 畫這個也許是最簡單的kZ。

\documentclass[a4paper]{article}
\usepackage{tikz}
\usetikzlibrary{calc}
\begin{document}
\begin{tikzpicture}
 \coordinate (O) at (0,0); 
 \draw[-latex] (O) -- (8,0);
 \draw[-latex] (O) -- (0,4);
 \coordinate[label=left:$P$] (P) at (1,0.2);
 \coordinate[label=right:$Q$] (Q) at (7.5,3.6);
 \draw[blue,-latex] (P) -- (Q);
 \draw plot[domain=1:7.5,variable=\x] ({1+6.5*(1-cos((\x-1)*(90/6.5)))},
 {0.2+3.4*sin((\x-1)*(90/6.5))}); 
 \draw[red,-latex] ({1+6.5*(1-cos((4-1)*(90/6.5)))},
 {0.2+3.4*sin((4-1)*(90/6.5)}) --++(2,1.1) node[midway,above,black]{$v$};
 \draw[dotted] ({1+6.5*(1-cos((4-1)*(90/6.5)))},
 {0.2+3.4*sin((4-1)*(90/6.5)}) -- ++(2,0)-- ++(0,1.1);
 \coordinate (v) at (4,3.4);
 \draw[dotted] (O-|P)node[below]{$f(a)$} -- (P) -- (O|-P)node[left]{$g(b)$};
 \draw[dotted] (O-|Q)node[below]{$f(b)$} -- 
 node[pos=0.3,left]{$\displaystyle \frac{g'(c)}{f'(c)}=
 \frac{g(b)-g(a)}{f(b)-f(a)}$} (Q) -- (O|-Q)node[left]{$g(a)$};
 \draw[dotted] (O|-P) -- (P-|Q);
\end{tikzpicture}
\end{document}

在此輸入影像描述

將此視為一種歡迎禮物,並在發布下一個問題時遵循 Stefan Pinnow 的建議。

相關內容