unit-circle-main

\documentclass[tikz,margin=8pt,convert={svg,command=\unexpanded{{inkscape\space --pdf-poppler\space --export-type="svg"\space --pages=1\space -o\space \outfile\space \infile}}}]{standalone}
%
\begin{document}
\begin{tikzpicture}[scale=3,white]
	% for making axis centered
	\path node at (-1.55,-1) {} node at (1.55,1) {};
	%
	% storing the radii of the degree and radian labels
	\pgfmathsetmacro\dLr{0.75}
	\pgfmathsetmacro\rLr{0.45}
	\pgfmathsetmacro\bd{0.125}
	\pgfmathsetmacro\br{0.075}
	%
	% draws axes
	\begin{scope}[very thick]
		\foreach \a in {0,90,180,270}{
			\draw (0,0) -- (\a:\rLr-\br) (\a:\rLr+\br) -- (\a:\dLr-\bd) (\a:\dLr+\bd) -- (\a:1.05);	
		}
	\end{scope}
	%
	\draw (0,0) circle (1);
	%
	% draws special radii
	\begin{scope}[very thin, black!50]
		\foreach \a in {0,90,180,270}{
			\foreach \i in {2,3,4}{
				\draw (0,0) -- (15*\i+\a:\rLr-\br) (15*\i+\a:\rLr+\br) -- (15*\i+\a:\dLr-\bd) (15*\i+\a:\dLr+\bd) -- (15*\i+\a:1.05);
			}
		}
	\end{scope}
	%
	\fill (0,0) circle (0.5pt);
	%
	% labels degrees
	\foreach \a in {0,30,...,330,45,135,225,315}{
		\node[inner sep=1] at (\a:\dLr) {$\a\textrm{\textdegree}$};
	}
	%
	% labels radians
	\begin{scope}[every node/.style={inner sep=-0.5, circle}]
		\tiny
		\node[inner sep=0.5] at (0:\rLr) {$0$};
		\node at (30:\rLr) {$\frac{\pi}{6}$};
		\node at (45:\rLr) {$\frac{\pi}{4}$};
		\node at (60:\rLr) {$\frac{\pi}{3}$};
		\node[inner sep=0.25] at (90:\rLr) {$\frac{\pi}{2}$};
		\node at (120:\rLr) {$\frac{2\pi}{3}$};
		\node at (135:\rLr) {$\frac{3\pi}{4}$};
		\node at (150:\rLr) {$\frac{5\pi}{6}$};
		\node[inner sep=0.5] at (180:\rLr) {$\pi$};
		\node at (210:\rLr) {$\frac{7\pi}{6}$};
		\node at (225:\rLr) {$\frac{5\pi}{4}$};
		\node at (240:\rLr) {$\frac{4\pi}{3}$};
		\node at (270:\rLr) {$\frac{3\pi}{2}$};
		\node at (300:\rLr) {$\frac{5\pi}{3}$};
		\node at (330:\rLr) {$\frac{11\pi}{6}$};
		\node at (315:\rLr) {$\frac{7\pi}{4}$};
	\end{scope}
	%
	% labels coordinates
	\begin{scope}[every node/.style={inner sep=0}]
		\pgfmathsetmacro\major{1.15}
		\pgfmathsetmacro\minor{1.05}
		\pgfmathsetmacro\ease{0.05}
		\draw (0:\major) node[anchor=west] {$\left(1,0\right)$};
		\draw (30:\minor)+(\ease,0) node[anchor=west] {$\left(\frac{\sqrt{3}}{2},\frac{1}{2}\right)$};
		\draw (45:\minor) node[anchor=south west] {$\left(\frac{\sqrt{2}}{2},\frac{\sqrt{2}}{2}\right)$};
		\draw (60:\minor)+(0,\ease) node[anchor=south] {$\left(\frac{1}{2},\frac{\sqrt{3}}{2}\right)$};
		\draw (90:\major) node[anchor=south] {$\left(0,1\right)$};
		\draw (120:\minor)+(0,\ease) node[anchor=south] {$\left(\frac{-1}{2},\frac{\sqrt{3}}{2}\right)$};
		\draw (135:\minor) node[anchor=south east] {$\left(\frac{-\sqrt{2}}{2},\frac{\sqrt{2}}{2}\right)$};
		\draw (150:\minor)+(-\ease,0) node[anchor=east] {$\left(\frac{-\sqrt{3}}{2},\frac{1}{2}\right)$};
		\draw (180:\major) node[anchor=east] {$\left(-1,0\right)$};
		\draw (210:\minor)+(-\ease,0) node[anchor=east] {$\left(\frac{-\sqrt{3}}{2},\frac{-1}{2}\right)$};
		\draw (225:\minor) node[anchor=north east] {$\left(\frac{-\sqrt{2}}{2},\frac{-\sqrt{2}}{2}\right)$};
		\draw (240:\minor)+(0,-\ease) node[anchor=north] {$\left(\frac{-1}{2},\frac{-\sqrt{3}}{2}\right)$};
		\draw (270:\major) node[anchor=north] {$\left(0,-1\right)$};
		\draw (300:\minor)+(0,-\ease) node[anchor=north] {$\left(\frac{1}{2},\frac{-\sqrt{3}}{2}\right)$};
		\draw (315:\minor) node[anchor=north west] {$\left(\frac{\sqrt{2}}{2},\frac{-\sqrt{2}}{2}\right)$};
		\draw (330:\minor)+(\ease,0) node[anchor=west] {$\left(\frac{\sqrt{3}}{2},\frac{-1}{2}\right)$};
	\end{scope}
\end{tikzpicture}
\end{document}
Powered by Forestry.md