I am trying to plot the elliptic curve secp256k1 y^2=x^3+7 in my latex-document.
\begin{center}
\begin{tikzpicture}[domain=-4:4, samples at ={-1.769292354238631, -1.76, -1.74, ..., 2.26, 2.35, 2.7, 2.9}]
\draw[->] (-2.2,0) -- (3.2,0) node[right] {$x$};
\draw[->] (0,-2.2) -- (0,4.2) node[above] {$y$};
\draw[->, color=red] plot (\x,{sqrt(\x^3+7)}) node[right] {$y^2=x^3-2x+2$};
\draw[->, color=red] plot (\x,{-sqrt(\x^3+7)}) node[right] {}
\end{tikzpicture}
\end{center}
but this gives me a curve that is interrupted at the left. And to be honest, I don't really know what all of these comments mean.
I would be happy if someone could help me, or has a good tutorial that explains how the plotting in Latex works!
Thanks in advance! And all the best.



;at the end of the last\drawcommand. – Stefan Pinnow Nov 26 '16 at 17:14