diff options
Diffstat (limited to 'info/examples/lgc2/D-6-4.ltx')
-rw-r--r-- | info/examples/lgc2/D-6-4.ltx | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/info/examples/lgc2/D-6-4.ltx b/info/examples/lgc2/D-6-4.ltx new file mode 100644 index 0000000000..89756adf9c --- /dev/null +++ b/info/examples/lgc2/D-6-4.ltx @@ -0,0 +1,34 @@ +%% +%% The LaTeX Graphics Companion, 2ed (first printing May 2007) +%% +%% Example D-6-4 on page . +%% +%% Copyright (C) 2007 Michel Goossens, Frank Mittelbach, Denis Roegel, Sebastian Rahtz, Herbert Vo\ss +%% +%% It may be distributed and/or modified under the conditions +%% of the LaTeX Project Public License, either version 1.3 +%% of this license or (at your option) any later version. +%% +%% See http://www.latex-project.org/lppl.txt for details. +%% + +\documentclass{ttctexaplate} +\pagestyle{empty} +\setcounter{page}{6} +\setlength\textwidth{413.44133pt} +\StartShownPreambleCommands +\usepackage{pstricks-add} +\setlength\parindent{0pt} +\renewcommand\pshlabel[1]{\footnotesize#1} +\renewcommand\psvlabel[1]{\footnotesize#1} +\StopShownPreambleCommands +\begin{document} +\psset{unit=1.25cm} +\begin{pspicture}[plotpoints=200](-0.5,-3)(10,2.5) + \psStep[algebraic,fillstyle=solid,fillcolor={[cmyk]{0,0,1,0}}](0.001,9.5){40}{2*sqrt(x)*cos(ln(x))*sin(x)} + \psStep[algebraic,StepType=Riemann,fillstyle=solid,fillcolor=blue](0.001,9.5){40}{2*sqrt(x)*cos(ln(x))*sin(x)} + \psaxes{->}(0,0)(0,-2.75)(10,2.5) + \psplot[algebraic,linecolor=white]{0.001}{9.75}{2*sqrt(x)*cos(ln(x))*sin(x)} + \uput[90](6,1.2){$f(x)=2\cdot\sqrt{x}\cdot\cos{(\ln{x})}\cdot\sin{x}$} +\end{pspicture} +\end{document} |