I am having difficulty with the following graph y=3cos3x and my plot in pstricks. I checked the graph by hand and also using a graphing calculator. My graph in PSTRICKS does not match that of the graphing calculator, and the one I created by hand. The amplitude is 3, there are 3 cycles from 0 to 2pi and the period is 2pi/3, but the value for \pi should be -3, not 3. Any suggestions?
Code: Select all
\documentclass{article}
\usepackage{pstricks-add}
\begin{document}
\psset{trigLabels=true,labelFontSize=\scriptstyle,xunit=\pstRadUnit}
\begin{pspicture}(-\psPiTwo,-4)(10,4)
\psaxes[trigLabelBase=2]{<->}(0,0)(-\psPiTwo,-5)(\psPiTwo,5)
\psplot[xunit=1cm,linecolor=red,linewidth=1.5pt,plotpoints=1000]{-\psPiTwo}{\psPiTwo}{x 3 mul RadtoDeg cos 3 mul }
\end{pspicture}
\end{document}