summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pst-func/pst-func-doc.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2007-07-16 16:52:01 +0000
committerKarl Berry <karl@freefriends.org>2007-07-16 16:52:01 +0000
commit8704eddd45c69d9cca614273c6e2d6829ef3f669 (patch)
tree8c726712f42d78e93de65e77defd26f28d668818 /Master/texmf-dist/doc/generic/pst-func/pst-func-doc.tex
parentb4195e08ebb104533785f8dd305b7f23e4a51719 (diff)
pst-func 0.49 (25jun07
git-svn-id: svn://tug.org/texlive/trunk@4629 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/generic/pst-func/pst-func-doc.tex')
-rw-r--r--Master/texmf-dist/doc/generic/pst-func/pst-func-doc.tex129
1 files changed, 128 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/generic/pst-func/pst-func-doc.tex b/Master/texmf-dist/doc/generic/pst-func/pst-func-doc.tex
index 92255041f8e..a1be51a8928 100644
--- a/Master/texmf-dist/doc/generic/pst-func/pst-func-doc.tex
+++ b/Master/texmf-dist/doc/generic/pst-func/pst-func-doc.tex
@@ -1,7 +1,8 @@
\documentclass[a4paper,11pt]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
-\usepackage{pamathx}
+%\usepackage{pamathx}
+\usepackage{mathpazo}
\usepackage{url}
\usepackage{amsmath}
\usepackage{tabularx}
@@ -893,6 +894,131 @@ for polar plots are also possible (see next example).
\end{pspicture*}
\end{LTXexample}
+
+
+\clearpage
+\section{\CMD{psVolume} -- Rotating functions around the x-axis}
+
+This macro shows the behaviour of a rotated function around the x-axis.
+
+\begin{verbatim}
+\psVolume[<options>](xMin,xMax){<steps>}{<function f(x)>}
+\end{verbatim}
+
+$f(x)$ has to be described as usual for the macro psplot.
+
+\makebox[\linewidth]{%
+\begin{pspicture}(-0.5,-2)(5,2.5)
+\psaxes{->}(0,0)(0,-2)(3,2.5)
+\psVolume[fillstyle=solid,fillcolor=magenta!30](0,4){1}{x sqrt}
+\psline{->}(4,0)(5,0)
+\end{pspicture}
+%
+\begin{pspicture}(-0.5,-2)(5,2.5)
+\psaxes{->}(0,0)(0,-2)(3,2.5)
+\psVolume[fillstyle=solid,fillcolor=red!40](0,4){2}{x sqrt}
+\psline{->}(4,0)(5,0)
+\end{pspicture}
+%
+\begin{pspicture}(-0.5,-2)(5,2.5)
+\psaxes{->}(0,0)(0,-2)(3,2.5)
+\psVolume[fillstyle=solid,fillcolor=blue!40](0,4){4}{x sqrt}
+\psline{->}(4,0)(5,0)
+\end{pspicture}
+}
+
+\makebox[\linewidth]{%
+\begin{pspicture}(-0.5,-2)(5,2.5)
+\psaxes{->}(0,0)(0,-2)(3,2.5)
+\psVolume[fillstyle=solid,fillcolor=green!40](0,4){8}{x sqrt}
+\psline{->}(4,0)(5,0)
+\end{pspicture}
+%
+\begin{pspicture}(-0.5,-2)(5,2.5)
+\psaxes{->}(0,0)(0,-2)(3,2.5)
+\psVolume[fillstyle=solid,fillcolor=yellow!40](0,4){16}{x sqrt}
+\psline{->}(4,0)(5,0)
+\end{pspicture}
+%
+\begin{pspicture}(-0.5,-2)(5,2.5)
+\psaxes{->}(0,0)(0,-2)(3,2.5)
+\psVolume[fillstyle=solid,fillcolor=cyan!40](0,4){32}{x sqrt}
+\psline{->}(4,0)(5,0)
+\end{pspicture}
+}
+
+\begin{lstlisting}
+\begin{pspicture}(-0.5,-2)(5,2.5)
+\psaxes{->}(0,0)(0,-2)(3,2.5)
+\psVolume[fillstyle=solid,fillcolor=magenta!30](0,4){1}{x sqrt}
+\psline{->}(4,0)(5,0)
+\end{pspicture}
+%
+\begin{pspicture}(-0.5,-2)(5,2.5)
+\psaxes{->}(0,0)(0,-2)(3,2.5)
+\psVolume[fillstyle=solid,fillcolor=red!40](0,4){2}{x sqrt}
+\psline{->}(4,0)(5,0)
+\end{pspicture}
+%
+\begin{pspicture}(-0.5,-2)(5,2.5)
+\psaxes{->}(0,0)(0,-2)(3,2.5)
+\psVolume[fillstyle=solid,fillcolor=blue!40](0,4){4}{x sqrt}
+\psline{->}(4,0)(5,0)
+\end{pspicture}
+
+\begin{pspicture}(-0.5,-2)(5,2.5)
+\psaxes{->}(0,0)(0,-2)(3,2.5)
+\psVolume[fillstyle=solid,fillcolor=green!40](0,4){8}{x sqrt}
+\psline{->}(4,0)(5,0)
+\end{pspicture}
+%
+\begin{pspicture}(-0.5,-2)(5,2.5)
+\psaxes{->}(0,0)(0,-2)(3,2.5)
+\psVolume[fillstyle=solid,fillcolor=yellow!40](0,4){16}{x sqrt}
+\psline{->}(4,0)(5,0)
+\end{pspicture}
+%
+\begin{pspicture}(-0.5,-2)(5,2.5)
+\psaxes{->}(0,0)(0,-2)(3,2.5)
+\psVolume[fillstyle=solid,fillcolor=cyan!40](0,4){32}{x sqrt}
+\psline{->}(4,0)(5,0)
+\end{pspicture}
+\end{lstlisting}
+
+
+\psset{xunit=2}
+\makebox[\linewidth]{%
+\begin{pspicture}(-0.5,-4)(3,4)
+ \psaxes{->}(0,0)(0,-4)(3,4)
+ \psVolume[fillstyle=solid,fillcolor=cyan!40](0,1){4}{x}
+ \psVolume[fillstyle=solid,fillcolor=yellow!40](1,2){4}{x dup mul}
+ \psline(2,0)(3,0)
+\end{pspicture}
+%
+\begin{pspicture}(-0.5,-4)(3,4)
+ \psaxes{->}(0,0)(0,-4)(3,4)
+ \psVolume[fillstyle=solid,fillcolor=cyan!40](0,1){20}{x}
+ \psVolume[fillstyle=solid,fillcolor=yellow!40](1,2){20}{x dup mul}
+ \psline(2,0)(3,0)
+\end{pspicture}
+}
+\begin{lstlisting}
+\psset{xunit=2}
+\begin{pspicture}(-0.5,-4)(3,4)
+ \psaxes{->}(0,0)(0,-4)(3,4)
+ \psVolume[fillstyle=solid,fillcolor=cyan!40](0,1){4}{x}
+ \psVolume[fillstyle=solid,fillcolor=yellow!40](1,2){4}{x dup mul}
+ \psline(2,0)(3,0)
+\end{pspicture}
+%
+\begin{pspicture}(-0.5,-4)(3,4)
+ \psaxes{->}(0,0)(0,-4)(3,4)
+ \psVolume[fillstyle=solid,fillcolor=cyan!40](0,1){20}{x}
+ \psVolume[fillstyle=solid,fillcolor=yellow!40](1,2){20}{x dup mul}
+ \psline(2,0)(3,0)
+\end{pspicture}
+\end{lstlisting}
+
\clearpage
\section{\CMD{psPrintValue}}\label{sec:printValue}
@@ -946,6 +1072,7 @@ valuewidth & <number> & 10 & the width of the string for the converted
+
\section{Credits}
Denis Girou | Manuel Luque | Timothy Van Zandt