I have two functions re
and rm
, for which I computed the minimum distance between them.
Now I would like to add a point at the minimum of my distance plot. I tried using Graphics[Point...]
but somehow couldn't combine the plot and the point into one single graph using Show[...]
.
Here is my code without the Point
:
re[t_] = {Sin[2 π (t)], (t)^3, (Cos[2 π (t)])^2};
rm[t_] = {1.2*Sin[2 π (t)] + 0.3, (t)^4, 1.1*(Cos[2 π*(t + 0.2)])^2};
Distance[t_] = √((rm[t] - re[t]).(rm[t] - re[t]))
Plot[Distance[t], {t, 0, 2},
PlotLabel -> "Distance between re and rm",
AxesLabel -> {"Time t", "Distance"}]
FindMinimum[Distance[t], {t, 2, 3}]
If anyone knows how to make this work I would be very thankful.
t
is the same? (That is, same time, so to speak.) Or just the min distance between the two parametrized curves. If the latter, then different parameters should be used in the optimization phase. From thePlotLabel
wording I'm guessing it is the former, which is what responses show how to do. Seemed like something to check all the same, given the wording of the subject. $\endgroup$