diff options
author | Karl Berry <karl@freefriends.org> | 2009-03-17 16:33:30 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-03-17 16:33:30 +0000 |
commit | 31be7e2d49b9eb33e82ba1a3b9b05bcafce81282 (patch) | |
tree | b19b511fc70ae4a64a62de73c4612a36ff97c5bf /Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.tex | |
parent | 8e0ffb65e364a93d9ba7bc24dd19137e0e54bf7d (diff) |
pstricks-add (16mar09)
git-svn-id: svn://tug.org/texlive/trunk@12409 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.tex')
-rw-r--r-- | Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.tex | 68 |
1 files changed, 53 insertions, 15 deletions
diff --git a/Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.tex b/Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.tex index d237307a2bb..f26b4809112 100644 --- a/Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.tex +++ b/Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.tex @@ -1,4 +1,4 @@ -%% $Id: pstricks-add-doc.tex 105 2009-03-05 19:55:16Z herbert $ +%% $Id: pstricks-add-doc.tex 111 2009-03-16 19:53:49Z herbert $ \documentclass[11pt,english,BCOR10mm,DIV12,bibliography=totoc,parskip=false,smallheadings headexclude,footexclude,oneside]{pst-doc} \listfiles @@ -89,6 +89,21 @@ \makeatother \lstset{escapechar=ยง} +\def\bgImage{\psset{unit=1.5} +\begin{pspicture}(-3,-3)(3,3) +\psChart[userColor={red!30,green!30,blue!40,gray,cyan!50, + magenta!60,cyan},chartSep=30pt,shadow=true,shadowsize=5pt]{34.5,17.2,20.7,15.5,5.2,6.9}{6}{2} +\psset{nodesepA=5pt,nodesepB=-10pt} +\ncline{psChartO1}{psChart1}\nput{0}{psChartO1}{1000 (34.5\%)} +\ncline{psChartO2}{psChart2}\nput{150}{psChartO2}{500 (17.2\%)} +\ncline{psChartO3}{psChart3}\nput{-90}{psChartO3}{600 (20.7\%)} +\ncline{psChartO4}{psChart4}\nput{0}{psChartO4}{450 (15.5\%)} +\ncline{psChartO5}{psChart5}\nput{0}{psChartO5}{150 (5.2\%)} +\ncline{psChartO6}{psChart6}\nput{0}{psChartO6}{200 (6.9\%)} +\bfseries% +\rput(psChartI1){Taxes}\rput(psChartI2){Rent}\rput(psChartI3){Bills} +\rput(psChartI4){Car}\rput(psChartI5){Gas}\rput(psChartI6){Food} +\end{pspicture}} \begin{document} \title{\texttt{pstricks-add}\\additionals Macros for \texttt{pstricks}% @@ -6899,12 +6914,12 @@ population changes and the second which describes how the predator population ch For concreteness let us assume that the prey in our model are rabbits, and that the predators are foxes. If we let $R(t)$ and $F(t)$ represent the number of rabbits and foxes, respectively, that are alive at time t, then the Lotka-Volterra model is: - +% \begin{align} \dot R &= a\cdot R - b\cdot R\cdot F\\ \dot F &= e\cdot b\cdot R\cdot F - c\cdot F \end{align} - +% where the parameters are defined by: \begin{description} \item[a] is the natural growth rate of rabbits in the absence of predation, @@ -6921,6 +6936,22 @@ the Stella representation of the Lotka-Volterra model will use two stocks, four converters and many connectors. \bgroup +\begin{center} +\def\InitCond{ 0 10 10}%% xa ya xl +\def\Faiglelapin{\Vaigle*(y[2]-y[0])/sqrt(y[1]^2+(y[2]-y[0])^2)|% + -\Vaigle*y[1]/sqrt(y[1]^2+(y[2]-y[0])^2)|% + -\Vlapin} +\def\Vlapin{1} \def\Vaigle{1.6} +\psset{unit=.7,subgriddiv=0,gridcolor=lightgray,method=adams,algebraic,% + plotpoints=20,showpoints=true} +\begin{pspicture}[showgrid=true](-3,-3)(10,10) + \psplotDiffEqn[plotfuncy=pop 0,whichabs=2,linecolor=red]{0}{10}{\InitCond}{\Faiglelapin} + \psplotDiffEqn[whichabs=0,whichord=1,linecolor=black,method=rk4]{0}{10}{\InitCond}{\Faiglelapin} + \psplotDiffEqn[whichabs=0,whichord=1,linecolor=blue]{0}{10}{\InitCond}{\Faiglelapin} +\end{pspicture} +\end{center} + +\begin{lstlisting}[label={fig:aiglelapin},xrightmargin=-1.5cm] \def\InitCond{ 0 10 10}%% xa ya xl \def\Faiglelapin{\Vaigle*(y[2]-y[0])/sqrt(y[1]^2+(y[2]-y[0])^2)|% -\Vaigle*y[1]/sqrt(y[1]^2+(y[2]-y[0])^2)|% @@ -6928,12 +6959,23 @@ converters and many connectors. \def\Vlapin{1} \def\Vaigle{1.6} \psset{unit=.7,subgriddiv=0,gridcolor=lightgray,method=adams,algebraic,% plotpoints=20,showpoints=true} -\begin{pspicture}(-3,-8.25)(8,10)\psgrid[griddots=10] +\begin{pspicture}[showgrid=true](-3,-3)(10,10) \psplotDiffEqn[plotfuncy=pop 0,whichabs=2,linecolor=red]{0}{10}{\InitCond}{\Faiglelapin} \psplotDiffEqn[whichabs=0,whichord=1,linecolor=black,method=rk4]{0}{10}{\InitCond}{\Faiglelapin} \psplotDiffEqn[whichabs=0,whichord=1,linecolor=blue]{0}{10}{\InitCond}{\Faiglelapin} -\end{pspicture}\hfill -\begin{pspicture}(0,-0.25)(10,14)\psgrid +\end{pspicture} +\end{lstlisting} + + +\begin{center} +\def\InitCond{ 0 10 10}%% xa ya xl +\def\Faiglelapin{\Vaigle*(y[2]-y[0])/sqrt(y[1]^2+(y[2]-y[0])^2)|% + -\Vaigle*y[1]/sqrt(y[1]^2+(y[2]-y[0])^2)|% + -\Vlapin} +\def\Vlapin{1} \def\Vaigle{1.6} +\psset{unit=.7,subgriddiv=0,gridcolor=lightgray,method=adams,algebraic,% + plotpoints=20,showpoints=true} +\begin{pspicture}[showgrid=true](0,-0.25)(10,14) \psplotDiffEqn[plotfuncy=dup 1 get dup mul exch dup 0 get exch 2 get sub dup mul add sqrt,linecolor=red,method=rk4]{0}{10}{\InitCond}{\Faiglelapin} \psplotDiffEqn[plotfuncy=dup 1 get dup mul exch dup 0 get exch 2 get sub dup @@ -6941,8 +6983,10 @@ converters and many connectors. \psplotDiffEqn[plotfuncy=pop Func aload pop pop dup mul exch dup mul add sqrt, linecolor=yellow]{0}{10}{\InitCond}{\Faiglelapin} \end{pspicture} +\end{center} \egroup -\begin{lstlisting}[label={fig:aiglelapin}] + +\begin{lstlisting}[label={fig:aiglelapin},xrightmargin=-1.5cm] \def\InitCond{ 0 10 10}%% xa ya xl \def\Faiglelapin{\Vaigle*(y[2]-y[0])/sqrt(y[1]^2+(y[2]-y[0])^2)|% -\Vaigle*y[1]/sqrt(y[1]^2+(y[2]-y[0])^2)|% @@ -6950,12 +6994,7 @@ converters and many connectors. \def\Vlapin{1} \def\Vaigle{1.6} \psset{unit=.7,subgriddiv=0,gridcolor=lightgray,method=adams,algebraic,% plotpoints=20,showpoints=true} -\begin{pspicture}(-3,-8)(5,10)\psgrid[griddots=10] - \psplotDiffEqn[plotfuncy=pop 0,whichabs=2,linecolor=red]{0}{10}{\InitCond}{\Faiglelapin} - \psplotDiffEqn[whichabs=0,whichord=1,linecolor=black,method=rk4]{0}{10}{\InitCond}{\Faiglelapin} - \psplotDiffEqn[whichabs=0,whichord=1,linecolor=blue]{0}{10}{\InitCond}{\Faiglelapin} -\end{pspicture}\hfill -\begin{pspicture}(10,12)\psgrid +\begin{pspicture}[showgrid=true](10,12) \psplotDiffEqn[plotfuncy=dup 1 get dup mul exch dup 0 get exch 2 get sub dup mul add sqrt,linecolor=red,method=rk4]{0}{10}{\InitCond}{\Faiglelapin} \psplotDiffEqn[plotfuncy=dup 1 get dup mul exch dup 0 get exch 2 get sub dup @@ -6967,7 +7006,6 @@ converters and many connectors. %-------------------------------------------------------------------------------------- -\clearpage \subsubsection{$y''=y$} %-------------------------------------------------------------------------------------- @@ -7000,7 +7038,7 @@ trigonometrical functions. \egroup \end{center} -\begin{lstlisting}[label={fig:minusexp}] +\begin{lstlisting}[label={fig:minusexp},xrightmargin=-1.5cm] \def\Funct{exch} \psset{xunit=5cm, yunit=0.75cm} \begin{pspicture}(0,-0.25)(2,7)\psgrid[subgriddiv=1,griddots=10] \psplot[linewidth=4\pslinewidth, linecolor=green]{0}{2}{Euler x exp} %%e^x |