summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pstricks/voss/bsp56.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-01-09 01:00:45 +0000
committerKarl Berry <karl@freefriends.org>2006-01-09 01:00:45 +0000
commit524dc4b7a5d60a1c703450ac6fd3749ffe81afa3 (patch)
treed2c179ce4fb28bc7cf883d77402e908512107896 /Master/texmf-dist/doc/generic/pstricks/voss/bsp56.tex
parentd4f912523bae12ffe3cd9cf564cfc7a29567ef4c (diff)
doc 8
git-svn-id: svn://tug.org/texlive/trunk@87 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/generic/pstricks/voss/bsp56.tex')
-rw-r--r--Master/texmf-dist/doc/generic/pstricks/voss/bsp56.tex25
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}