summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/mandi
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-12-31 23:17:17 +0000
committerKarl Berry <karl@freefriends.org>2012-12-31 23:17:17 +0000
commitf7d44df0c7bc9939ac13ff254fe97b47af0b16b9 (patch)
tree38c5af534c6e3040c10c3d03694ee7f6f26bdcf6 /Master/texmf-dist/doc/latex/mandi
parent3c0d257b00b36e468d76902fa2e37b97b490afba (diff)
new latex package mandi (31dec12)
git-svn-id: svn://tug.org/texlive/trunk@28677 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/mandi')
-rw-r--r--Master/texmf-dist/doc/latex/mandi/README10
-rw-r--r--Master/texmf-dist/doc/latex/mandi/README.txt10
-rw-r--r--Master/texmf-dist/doc/latex/mandi/mandi.pdfbin0 -> 907395 bytes
-rw-r--r--Master/texmf-dist/doc/latex/mandi/vdemo.py22
4 files changed, 42 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/mandi/README b/Master/texmf-dist/doc/latex/mandi/README
new file mode 100644
index 00000000000..eaa43321f25
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/mandi/README
@@ -0,0 +1,10 @@
+The mandi package provides commands for typesetting symbols, expressions, and
+quantities used in introductory physics and astronomy. Many of the commands are
+inspired by Matter & Interactions by Ruth Chabay and Bruce Sherwood. Many of
+the astronomical commands were inspired by my own classroom needs. It must be
+understood that mandi does not do any computations! It only provides commands
+for typesetting.
+
+Run the file mandi.dtx through (pdf)LaTeX to generate README (this file),
+mandi.ins, mandi.sty, vdemo.py, and mandi.pdf (user documentation). I assume
+a TeXLive2011 or later distribution is installed.
diff --git a/Master/texmf-dist/doc/latex/mandi/README.txt b/Master/texmf-dist/doc/latex/mandi/README.txt
new file mode 100644
index 00000000000..eaa43321f25
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/mandi/README.txt
@@ -0,0 +1,10 @@
+The mandi package provides commands for typesetting symbols, expressions, and
+quantities used in introductory physics and astronomy. Many of the commands are
+inspired by Matter & Interactions by Ruth Chabay and Bruce Sherwood. Many of
+the astronomical commands were inspired by my own classroom needs. It must be
+understood that mandi does not do any computations! It only provides commands
+for typesetting.
+
+Run the file mandi.dtx through (pdf)LaTeX to generate README (this file),
+mandi.ins, mandi.sty, vdemo.py, and mandi.pdf (user documentation). I assume
+a TeXLive2011 or later distribution is installed.
diff --git a/Master/texmf-dist/doc/latex/mandi/mandi.pdf b/Master/texmf-dist/doc/latex/mandi/mandi.pdf
new file mode 100644
index 00000000000..07cbcbcb0fd
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/mandi/mandi.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/mandi/vdemo.py b/Master/texmf-dist/doc/latex/mandi/vdemo.py
new file mode 100644
index 00000000000..b50f0c35eea
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/mandi/vdemo.py
@@ -0,0 +1,22 @@
+from __future__ import print_function, division
+from visual import *
+
+giant = sphere(pos=vector(-1e11,0,0),radius=2e10,mass=2e30,color=color.red)
+giant.p = vector(0, 0, -1e4) * giant.mass
+
+dwarf = sphere(pos=vector(1.5e11,0,0),radius=1e10,mass=1e30,color=color.yellow)
+dwarf.p = -giant.p
+
+for a in [giant, dwarf]:
+ a.orbit = curve(color=a.color, radius=2e9)
+
+dt = 86400
+while 1:
+ rate(100)
+ dist = dwarf.pos - giant.pos
+ force = 6.7e-11 * giant.mass * dwarf.mass * dist / mag(dist)**3
+ giant.p = giant.p + force*dt
+ dwarf.p = dwarf.p - force*dt
+ for a in [giant, dwarf]:
+ a.pos = a.pos + a.p/a.mass * dt
+ a.orbit.append(pos=a.pos)