Advertisement
Guest User

Spiral with orientation mathematica

a guest
Dec 27th, 2015
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. eqn = {(a + b*theta)*Cos[theta], (a + b*theta)*Sin[theta]};
  2. deqn = D[eqn, theta]
  3. Graphics[Table[
  4. Translate[
  5. Rotate[Rectangle[{-0.1, -0.5}, {0.1, 0.5}],
  6. ArcTan[deqn[[1]], deqn[[2]]]], eqn] /. {a -> 1, b -> 1,
  7. theta -> t}, {t, .2, 10, 0.2}]
  8. ]
  9. (* NOTES: ArcTan is diefferently defined in mathematica than in c and c++ for example *)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement