I am unable to get the output from the presented code and it is showing some error.
Code: Select all
\documentclass[10pt,a4paper]{article}
\usepackage{tikz}
\usepackage{pgfplots}
\begin{document}
y = sin^{-1}x
\begin{tikzpicture}
\begin{axis}[
xmin=-6,
xmax=6,
xlabel={$x$},
ymin=-2,
ymax=2,
ylabel={$y$},
axis x line=middle,
axis y line=middle,
axis line style=<->
]
\addplot[no marks,blue,<->] expression[samples=100]{sin^{-1}(deg(x))};
\addlegendentry{$y=\csc(x)$};
\end{axis}
\end{tikzpicture}
\end{document}
Regards,
Sachin Sharma