In[1]:= {{1, 0, 0}, {0, 0, -1}, {0, -1, 0}}.{{1, 8, 5}, {4, 4, 6}, {2,
7, 9}} // MatrixForm
Out[1]//MatrixForm= \!\(
TagBox[
RowBox[{"(", "", GridBox[{
{"1", "8", "5"},
{
RowBox[{"-", "2"}],
RowBox[{"-", "7"}],
RowBox[{"-", "9"}]},
{
RowBox[{"-", "4"}],
RowBox[{"-", "4"}],
RowBox[{"-", "6"}]}
},
GridBoxAlignment->{
"Columns" -> {{Center}}, "ColumnsIndexed" -> {},
"Rows" -> {{Baseline}}, "RowsIndexed" -> {}},
GridBoxSpacings->{"Columns" -> Manipulate[
l = p/r;(*Drawing hole radius as a percent of drawing disk radius*)
k = r/R0;(*Drawing disk radius as a percent of stationary outer ring \
radius*)
r = Clip[Round[r], {1, R0 - 1}];
p = Clip[Round[p], {1, r - 1}];
ParametricPlot[{
R0 ((1 - k) Cos[t1] + (l k Cos[((1 - k)/k)*t1])),
R0 ((1 - k) Sin[t1] - (l k Sin[((1 - k)/k)*t1]))
}, {t1, 0, R Pi},
Epilog -> Circle[{0, 0}, R0],
PlotRange -> R0 {{-1.1, 1.1}, {-1.1, 1.1}}]
,
{{R0, 32, "Stationary ring inner radius"}, 10, 200, 10,
Appearance -> "Labeled"},
{{r, Round[R0/2], "Drawing disk radius"}, 1, Dynamic[R0 - 1], 1,
Appearance -> "Labeled"},
{{p, Round[r/2], "Drawing hole radius"}, 1, Dynamic[r - 1], 1,
Appearance -> "Labeled"},
{{R, 30, "Number of rotations"}, 1, 150, 10, Appearance -> "Labeled"},
{l, ControlType -> None},
{k, ControlType -> None}
]