Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tan not working #31

Closed
AriesOdyssey opened this issue Feb 28, 2023 · 0 comments
Closed

tan not working #31

AriesOdyssey opened this issue Feb 28, 2023 · 0 comments

Comments

@AriesOdyssey
Copy link

AriesOdyssey commented Feb 28, 2023

Hi I have this code right now:

\begin{document}
  \begin{tikzpicture}[domain=-pi:pi]
    \draw[very thin,color=gray] (-pi,-pi) grid (pi,pi);
    \draw[->] (-0.2,0) -- (pi+0.2,0) node[right] {$x$};
    \draw[->] (0,-1.2) -- (0,pi+0.2) node[above] {$f(x)$};
    \draw[color=red]    plot (\x,{tan(\x r)})      node[right] {$f(x) =\tan x$};
    \draw[color=blue]   plot ({tan(\x r)},\x)    node[right] {$f(x) = \arctan x$};
  \end{tikzpicture}
\end{document}

with result
image

if I remove the radiant sign "r" I get

image

which is not what I want.

Could u tell me what I am doing wrong or is the plugin not working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant