KTUG 한국 텍 사용자 그룹

Menu

KTUG :: 마당

숙제에서 요구하는 방법은 아니지만,

정확한 그림이 필요할 때에는 pstricks를 이용하는 것도 방법 중 하나...

\documentclass{article} 

\usepackage{pst-func}

\begin{document}

%\psset{unit=1.5} %just for scale

\begin{pspicture}[showgrid=false](0,-2)(7.5,2)

\psaxes[dx=\psPi,trigLabels=true]{->}(0,0)(0,-1.5)(7.5,2)[$\theta$,-90][~,180]

\psplot[algebraic,plotpoints=500,linecolor=blue]{0}{\psPiTwo}{sin(x)}

\psplot[algebraic,plotpoints=500,linecolor=red]{0}{\psPiTwo}{cos(x)}

\uput[ur](0,1){$\cos\theta$}

\uput[ur](\psPiH,1){$\sin\theta$}

\end{pspicture}

\end{document}

 

KTUG 한국 텍 사용자 그룹