I'm trying to graph \sin\frac{\pi}{x} in for my notes and pgf plots is giving me some issues. I've tried looking around but I haven't found a post that quite gave me what I need. This is what I have
\documentclass[12pt]{article}
\usepackage{fullpage}
\usepackage{amssymb}
\usepackage{verbatim,amsfonts, colonequals, amsthm, amsmath, mathrsfs, amscd, pgfplots,multicol,geometry}
\usepackage{amsmath,gensymb,tikz}
\pgfplotsset{my style/.append style={axis x line=middle, axis y line=
middle, xlabel={$x$}, ylabel={$y$}, axis equal }, trig format plots=rad}
\pgfplotsset{Axis Style/.style={
width=.5\textwidth, %height=5cm,
axis x line=center,
axis y line=middle,
samples=100,
ymin=-2.5, ymax=2.5,
xmin=-7.0, xmax=7.0,
domain=-2*pi:2*pi,
axis line style=<->,
}}
\geometry{textwidth=6.3in,textheight=9in}
\parindent=0in
\pagestyle{empty}
\begin{document}
\begin{center}
\begin{tikzpicture}[scale=0.8]
\begin{axis}[my style, ymax=1, ymin=-1]
\addplot[domain=0:2*pi] {sin(x)};
\end{axis}
\end{tikzpicture}
\end{center}
\end{document}
I would like to have x-ticks at pi/2, pi, 3pi/2, and 2pi. Also, I would like my ymin=-1 and ymax=1, but it doesn't seem to be recognizing that. Finally, whenever I try to graph sin(pi/x), I get compiling errors. Can someone point me in the right direction in fixing this?

sin(pi/x)is that your domain contains 0. Start with 0.1 e.g., it will work. – bmv Jan 19 '18 at 18:16