Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Spiral with constant velocity (same distance betwee coordinate)
Replies: 7   Last Post: Feb 27, 2013 2:26 AM

 Messages: [ Previous | Next ]
 Torsten Posts: 1,717 Registered: 11/8/10
Re: Spiral with constant velocity (same distance betwee coordinate)
Posted: Feb 26, 2013 7:43 AM

"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <kgi99o\$jpi\$1@newscl01ah.mathworks.com>...
> "Torsten" wrote in message <kghobs\$5qf\$1@newscl01ah.mathworks.com>...
>

> > Given a point on the spiral
> > (t0*cos(t0)*Width,t0*sin(t0)*Width),
> > the distance squared to another point on the spiral is given by
> > d^2=(t*cos(t)*Width-t0*cos(t0)*Width)^2 + (t*sin(t)*Width-t0*sin(t0)*Width)^2.
> > This is a quadratic equation in t you can solve analytically.

>
> IIUC, Torsen's formula is the euclidian 2D distance and not distance along the spiral.
>
> In order to find the distance along the curve, one need to compute the velocity wrt t, then integrate it, then solve the equation. This might give some mathematical equation not trivial to solved. Burt I haven't wrote i down (it should have a square-root somewhere and I bet it doesn't have a closed integration form).
>
> Bruno

True.
The OP's passage
> % Calculating the distance between each sample
> dX=diff(x); dY=diff(y); vec=[dX; dY]';
> Distance = sqrt(vec(:,1).^2 + vec(:,2).^2);
> figure(2); plot(Distance)

seems to indicate that he refers to the Euclidean distance between
two subsequent points on the spiral.

Best wishes
Torsten.

Date Subject Author
2/25/13 Markus Due Jakobsen
2/25/13 Markus Due Jakobsen
2/26/13 Torsten
2/26/13 Bruno Luong
2/26/13 Torsten
2/26/13 Bruno Luong
2/27/13 Torsten