Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #15108 > unrolled thread

Animate Command and Vector Reference

Started byWilliam Dickinson <william.dickinson.0718@gmail.com>
First post2013-07-03 08:50 +0000
Last post2013-07-03 08:50 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Animate Command and Vector Reference William Dickinson <william.dickinson.0718@gmail.com> - 2013-07-03 08:50 +0000

#15108 — Animate Command and Vector Reference

FromWilliam Dickinson <william.dickinson.0718@gmail.com>
Date2013-07-03 08:50 +0000
SubjectAnimate Command and Vector Reference
Message-ID<kr0okf$3e8$1@smc.vnet.net>
I'm new to Mathematica and I want to create some animations. I tried something like this:

sub = {{a, 1}, {a^2, 1}}
Animate[Graphics[{Line[{{0, 0}, sub[[1]]}]}], {a, -1, 1}]

and Mathematica give me an error. This error ( Coordinate {a, 1} should be a pair of numbers, or a Scaled or Offset form.) is not helpful.

I know that I can fix this by changing sub[[1]] to {a,1}, but this is not a great solution. I have several places in the actual Animate command that use sub[[1]] (some in conjunction with a Table command) and it would be painful to do all of the replacing and rewriting. How can I make something like this work?

I suspect that I'm missing something simple....


Thanks in advance!

Will

 

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web