Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #4224
| From | "DaleJenk" <dale.jenkins8@deletegooglemail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Animation |
| Date | 2011-08-08 08:19 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <j1o66n$4ep$1@smc.vnet.net> (permalink) |
How can I animate the following:
Manipulate[
m = 1.0;
b1 = 1;
b2 = 0;
b3 = 0;
{x1, x2, x3} =
a = b1*Cos[t]*{1, 0, -1} +
b2*Cos[Sqrt[(2 + Sqrt[2])]*t]*{1, -Sqrt[2], 1} +
b3*Cos[Sqrt[(2 - Sqrt[2])]*t]*{1, Sqrt[2], 1}, {t, 0, 5}]
balls = Graphics[{Black,
Line[{{0, 0}, {1, x1}, {2, x2}, {3, x3}, {4, 0}}],
Red, {Disk[{1, x1}, .1 Sqrt[m]], Disk[{2, x2}, .1 Sqrt[m]],
Disk[{3, x3}, .1 Sqrt[m]]}}, PlotRange -> {{0, 4}, {-1, 1}},
Frame -> True, ImageSize -> {400, 250}]
Thanks for any help.
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Animation "DaleJenk" <dale.jenkins8@deletegooglemail.com> - 2011-08-08 08:19 +0000
csiph-web