summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pst-ode/examples/ode.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-08-17 21:17:38 +0000
committerKarl Berry <karl@freefriends.org>2017-08-17 21:17:38 +0000
commitb8ff3abffd353bbb67365864f1abdf3c9ff91fa1 (patch)
treee29d0928850844977dce538d50a836a48631b446 /Master/texmf-dist/doc/generic/pst-ode/examples/ode.tex
parent9d52a67c4dd12d828f99b735ed4970f3d338cb24 (diff)
pst-ode (17aug17)
git-svn-id: svn://tug.org/texlive/trunk@45057 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/generic/pst-ode/examples/ode.tex')
-rw-r--r--Master/texmf-dist/doc/generic/pst-ode/examples/ode.tex18
1 files changed, 18 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/generic/pst-ode/examples/ode.tex b/Master/texmf-dist/doc/generic/pst-ode/examples/ode.tex
new file mode 100644
index 00000000000..fdf6b670e07
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pst-ode/examples/ode.tex
@@ -0,0 +1,18 @@
+\documentclass{article}
+\usepackage{pst-ode,pst-plot}
+\usepackage[T1]{fontenc}
+\usepackage[latin1]{inputenc}%
+
+\begin{document}
+\begin{center}
+\psset{unit=3cm}
+\begin{pspicture}(-0.3,-0.4)(.2,1)
+ \psset{xAxisLabel=$t$,xAxisLabelPos={c,-6ex},yAxisLabelPos={-3ex,c}}
+ \begin{psgraph}[axesstyle=frame,Ox=-1,](0,0)(0,0)(4,1){10cm}{2.5cm}
+ \rput(1,0){\psplot[algebraic]{-1}{3}{Euler^(-x^2)}}
+ \pstODEsolve[algebraicIC,algebraic]{TY}{(t) 0}{-1}{3}{5}{1/Euler}{-2*t*y[0]}
+ \rput(1,0){\listplot[plotstyle=dots,dotsize=0.05,linecolor=red]{TY}}
+ \end{psgraph}
+\end{pspicture}
+\end{center}
+\end{document}