# Graphing arcsin(x)

Herbert Voss Herbert.Voss at fu-berlin.de
Mon Nov 22 07:17:11 CET 2021


Am 21.11.21 um 22:32 schrieb Djones9976 via texhax:
> Can someone please tell me how to plot a graph of arcsin(x).  I can
> plot arccos(x) and arctan(x) using the codes below, but all I get is a
> blank when I try to plot arcsin.  I read somewhere that postscript
> only recognizes arctan(x) but I don't know if that is my problem.  As
> you will see from this code, I am trying to avoid tikz because so much
> other code is written without it and putting them together just
> confuses the issue.
>

you can also use the keyword yMaxValue, then ou do not need clipping:

\begin{figure}
\psset{algebraic=true,plotpoints=1501}
\begin{pspicture}(-3,-1.5)(3,3.5)
\psaxes[xunit=1](0,0)(-3.14,-1.5)(3.14,3.14)
\psplot[linecolor=blue,linestyle=dashed,linewidth=2pt,yMaxValue=1.4]{-1}{1}{asin(x)}
\psplot[linecolor=red,linestyle=dashed,linewidth=2pt,yMaxValue=3.14]{-1}{1}{acos(x)}
\end{pspicture}
\caption{Inverse Trigonometric plots in algebraic notation}
\end{figure}

Herbert