I am very new to drawing graphs using tikz. I want to draw the graph of the following function $f(x)=x^a\sin(x^{-b})$ for $x>0$. The outcome should be exactly the same as the picture of page 118 of the book "Real Analysis" by Stein & Shakarchi.
Here I don't mean to violate the copyright of the book but I guess it is more convenient to include the picture here. If I do violate the copyright please let me know and I am happy to remove the picture.
However, I got the following picture instead.
I use the following code
\begin{center}
\begin{tikzpicture}
\draw[smooth, thick, domain=1/100:2*pi] plot (\x, {\x^(0.5)*sin(deg(\x^(-1)))});
\end{tikzpicture}
\end{center}
I tried different values of a and b as described in the book, but doesn't work. Is the domain wrong or I should use other commands?
Thanks for your help.
,samples=1000
after thedomain
specification. – Torbjørn T. Jan 24 '17 at 12:02