【LaTeX应用】绘制椭圆曲线图形

椭圆曲线(elliptic curve),在曲线上描点

\usepackage{pgfplots}
\pgfplotsset{compat=1.12,}

\begin{document}

\begin{tikzpicture}
\begin{axis}[
xmin=-4,
xmax=5,
ymin=-7,
ymax=7,
xlabel={$x$},
ylabel={$y$},
scale only axis,
axis lines=middle,
% set the minimum value to the minimum x value
% which in this case is $-\sqrt[3]{7}$
domain=-1.912931:3,      % <-- works for pdfLaTeX and LuaLaTeX
%            domain=-1.91293118:3,   % <-- would also work for LuaLaTeX
samples=200,
smooth,
% to avoid that the "plot node" is clipped (partially)
clip=false,
% use same unit vectors on the axis
axis equal image=true,
]
\addplot [black] {sqrt(x^3+x+2)}
node[right] {$y^2=x^3+x+2$};
\addplot [black] {-sqrt(x^3+x+2)};
\end{axis}
\end{tikzpicture}
	
\end{document}

 

已标记关键词 清除标记
©️2020 CSDN 皮肤主题: 游动-白 设计师:白松林 返回首页