From 79b8f92068f3e6e6fca6bc7b0e79c178845da4ed Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 7 Apr 2010 22:51:54 +0000 Subject: mfpic4ode update (7apr10) git-svn-id: svn://tug.org/texlive/trunk@17745 c570f23f-e606-0410-a88d-b1316a301751 --- .../source/latex/mfpic4ode/mfpic4ode.dtx | 26 +++++++++++++--------- 1 file changed, 15 insertions(+), 11 deletions(-) (limited to 'Master/texmf-dist/source') diff --git a/Master/texmf-dist/source/latex/mfpic4ode/mfpic4ode.dtx b/Master/texmf-dist/source/latex/mfpic4ode/mfpic4ode.dtx index 82b78640c93..f8e337b3df7 100644 --- a/Master/texmf-dist/source/latex/mfpic4ode/mfpic4ode.dtx +++ b/Master/texmf-dist/source/latex/mfpic4ode/mfpic4ode.dtx @@ -57,20 +57,22 @@ % Right brace \} Tilde \~} % % -% \changes{v0.2}{2008/01/03}{First public version} +% \changes{v0.2}{2008/02/03}{First public version} % \changes{v0.3}{2009/04/15}{Added connect environment to paths} +% \changes{v0.4}{2010/04/07}{Updated documentations} % % \GetFileInfo{mfpic4ode.dtx} % % \DoNotIndex{\newcommand,\newenvironment} % -% \def\fileversion{0.3} -% \def\filedate{2009/04/15} +% \def\fileversion{0.4} +% \def\filedate{2010/04/07} % % \title{The \textsf{mfpic4ode} package\thanks{This document -% corresponds to \textsf{mfpic4ode}~\fileversion, dated \filedate.}} -% \author{Robert Marik \\ \texttt{marik@mendelu.cz}} -% +% corresponds to \textsf{mfpic4ode}~\fileversion, dated +% \filedate.}} \author{Robert Marik \\ \texttt{marik@mendelu.cz} +% \thanks{Supported by the grant FRV\v{S} 99/2008 (Fund for +% Developement of Czech Universities).}} % \maketitle % % \section{Introduction} @@ -79,9 +81,11 @@ % portraits and integral curves of differential equations and % autonomous systems using |mfpic| macros. These macros have been used % by the author to prepare some pictures for classrooms and the -% results seem to be accptable for this purpouse, but always remember +% results seem to be acceptable for this purpose, but always remember % that due to the fixed points arithmetics in Metapost, the error in -% computations could be significant. +% computations could be significant. Another excellent tool which can +% be used to draw trajectories is Sage\TeX{} which gives you full +% power of computer algebra system Sage in \LaTeX. % % \section{Usage} % You can load the package in \LaTeX{} using standard @@ -155,7 +159,7 @@ % \DescribeMacro{\trajectoryRKF\{x0\}\{y0\}} The macros |\trajectory|, % |\trajectoryRK| and |\trajectoryRKF| are used for drawing integral % curves with initial condition $y(x_0)=y_0$ using Euler, second order -% Runge-Kutta and fourth order Runge-Kutta methods, respectivelly. +% Runge-Kutta and fourth order Runge-Kutta methods, respectively. % The length of each step is stored in MetaPost variable % |ODEstepcount|, the length of each step is in the MetaPost variable % |ODEstep|. You can set these variables using |\mfsrc| macro as @@ -326,7 +330,7 @@ \trajectoryRKF{#1}{#2}\relax\let\next\ODE@cycle@IC\fi\next} \mfsrc{path p,q;color ODEcolorarrow;} -%%% Onedimensional autonomous systems y'=f(y) where '=d/dx +%%% One-dimensional autonomous systems y'=f(y) where '=d/dx \def\ODEharrow#1{ \mfsrc{x1:=#1; if ODErhs(0,x1)>0: x3:=x1+ODEarrowlength else: x3:=x1-ODEarrowlength fi; @@ -352,7 +356,7 @@ \draw\arrow\lines{(0,x1),(0,x3)} } -%%% Twodimensional autonomous systems x'=f(x,y), y'=g(x,y) where '=d/dt +%%% Two-dimensional autonomous systems x'=f(x,y), y'=g(x,y) where '=d/dt \def\ASdefineequations#1#2{\fdef{ASf}{x,y}{#1}\fdef{ASg}{x,y}{#2}} \def\AStrajectory#1#2{ -- cgit v1.2.3