diff options
Diffstat (limited to 'Master/texmf-dist/doc/generic/pstricks/voss/bsp56.tex')
-rw-r--r-- | Master/texmf-dist/doc/generic/pstricks/voss/bsp56.tex | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/generic/pstricks/voss/bsp56.tex b/Master/texmf-dist/doc/generic/pstricks/voss/bsp56.tex new file mode 100644 index 00000000000..756a418c753 --- /dev/null +++ b/Master/texmf-dist/doc/generic/pstricks/voss/bsp56.tex @@ -0,0 +1,25 @@ +\documentclass{article} + +\usepackage{pstricks} % To use the "xcolor" package with PSTricks +\usepackage{pst-plot} +\usepackage{amsmath} + +\pagestyle{empty} + +\begin{document} + +\psset{xunit=8,yunit=3} +\begin{pspicture}(-0.4,-1.2)(1.05,1.2) + \psaxes[Dx=0.2,Oy=-1,Dy=0.25,tickstyle=top, + axesstyle=frame](0,-1)(1,1) + \rput(-0.3,0){\shortstack{\textcolor{blue}{$\dfrac{x}{(x + 0.3)}$}\\ + \textcolor{red}{$\sin (10 \times x) / 2$}}} + \uput[0](1,0){$x$} + \uput[90](0,1){$y$} + \psplot[linecolor=red,linewidth=1.5pt]% 1 radian = 57.296 degrees + {0}{1}{x 10 mul 57.296 mul sin 0.5 mul} % sin(10 x) / 2 + \psplot[linecolor=blue,linewidth=1.5pt]{0}{1}{x 0.3 x add div} % x / (x + 0.3) + \psline[linewidth=0.2pt,linestyle=dashed](0,0)(1,0) +\end{pspicture} + +\end{document} |