I have tried to graph some trigonometric functions in LaTex and I succeeded but I couldn't with this sin(8πx) which could be approximated as sin(25x) but it seems that the bigger the number that multiplies x, the more LaTex starts to show the graph every time more deformed until it no longer shows it. Is there a way to graph that function?
This is my code:
\begin{center}
\begin{tikzpicture}
\draw [->] (-3.5,0) -- (3.5,0) node[below] {$x$};
\draw [->] (0,-1.5) -- (0,1.5) node[left] {$y$};
\draw (3.14,0) node[below] {$\pi$};
\draw (-3.14,0) node[below] {$-\pi$};
\draw [color=olive, thick,domain=-3.14:3.14] plot (\x,{sin(25*\x r)});
\end{tikzpicture}
\end{center}
In image 1 you see sin(20x). In image 2 it shows me sin(25x)
I can think of two changes, to begin with, use it
smooth
to smooth the connections of the points and finally, play with the parametersamples
to generate more points. Something like this:'
Result: