失眠网,内容丰富有趣,生活中的好帮手!
失眠网 > 【LaTeX应用】绘制椭圆曲线图形

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

时间:2024-01-15 23:45:53

相关推荐

【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 LuaLaTeXsamples=200,smooth,% to avoid that the "plot node" is clipped (partially)clip=false,% use same unit vectors on the axisaxis 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}

如果觉得《【LaTeX应用】绘制椭圆曲线图形》对你有帮助,请点赞、收藏,并留下你的观点哦!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。