Group Abstract Group Abstract

Message Boards Message Boards

[GIF] Minimal (Rotating minimal lattice trefoil knot)

4 Replies
Posted 7 years ago

For people who don't want to download software just to get the needed points for the knot:

lattice31 = AnglePath3D[{19/24, 4/3, 11/8},
                        {{0, Pi/2}, {0, 0}, {-Pi/2, 0}, {0, Pi/2}, {0, 0}, {0, -Pi/2},
                         {-Pi/2, 0}, {Pi/2, 0}, {0, -Pi/2}, {0, 0}, {0, -Pi/2}, {0, 0},
                         {0, -Pi/2}, {0, Pi/2}, {Pi/2, 0}, {0, 0}, {Pi/2, 0}, {0, 0},
                         {Pi/2, 0}, {0, 0}, {0, 0}, {0, Pi/2}, {Pi/2, 0}}];

As for the main code itself: the standard advice of replacing M.# & /@ pts with pts.Transpose[M] and RotationMatrix[-θ, axis].# & /@ {p, q} with {p, q}.RotationMatrix[θ, axis] applies. ;)

POSTED BY: J. M.

As for the main code itself: the standard advice of replacing M.# & /@ pts with pts.Transpose[M] and RotationMatrix[-θ, axis].# & /@ {p, q} with {p, q}.RotationMatrix[θ, axis] applies. ;)

Yeah, I know. I think I've never quite accepted the reality that individual vectors may as well be column vectors (in terms of how matrix multiplication works), but vectors in lists are definitely row vectors.

Posted 7 years ago

For better or for worse, Mathematica's matrices (or list of lists, however your preference) are row-oriented. I admit that it also took me some time to adjust my conventional mental images of linear algebra to adapt them to programming in Mathematica.

POSTED BY: J. M.

enter image description here - Congratulations! This post is now a Staff Pick as distinguished by a badge on your profile! Thank you, keep it coming, and consider contributing your work to the The Notebook Archive!

POSTED BY: EDITORIAL BOARD
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard