Consider the following code:
x[t_] := (a - b) Cos[t] + b Cos[(a/b - 1) t]
y[t_] := (a - b) Sin[t] - b Sin[(a/b - 1) t
for example
ParametricPlot[{x[t_], y[t_] }, {t, 0, 12 [Pi]}, …]
I tried different ways without success.
Consider the following code:
x[t_] := (a - b) Cos[t] + b Cos[(a/b - 1) t]
y[t_] := (a - b) Sin[t] - b Sin[(a/b - 1) t
for example
ParametricPlot[{x[t_], y[t_] }, {t, 0, 12 [Pi]}, …]
I tried different ways without success.
what are the values of a and b? Also, you don’t have a semicolon between the definitions of the two functions or a closing ] at the end and you have [ ] around Pi.
a = 2; b = 3;
x[t_] := (a - b) Cos[t] + b Cos[(a/b - 1) t];
y[t_] := (a - b) Sin[t] - b Sin[(a/b - 1) t];
ParametricPlot[{x[t], y[t]}, {t, 0, 2 Pi}]
Thank youThank you!
One more variation on the same subject:
z[t_, a_, b_] := {(a - b) Cos[t] + b Cos[(1 - a/b) t], (a - b) Sin[t] + b Sin[(1 - a/b) t]}
ParametricPlot[
Evaluate[MapThread[
z[t, #1, #2] &, {Range[-(1/2), 9, 1/3],
Range[-(1/3), 14, 1/2]}]], {t, 0, 180 \[Pi]},
PlotTheme -> "Marketing", Axes -> False,
PlotStyle -> Thick]
Very nice! Thank you!