Constant speed
04-11-2016, 02:01 PM
Post: #9
 Martin Hepperle Senior Member Posts: 330 Joined: May 2014
RE: Constant speed
The function $$y=sin(x)$$ has the slope $${dy\over dx}=cos(x)$$ which yields
$dy=cos(x) \cdot dx$
The arc length of a segment with components $$dx$$ by $$dy$$ is given by
$ds = \sqrt{dx^2+dy^2}$
Substituting $$dy$$ into the above yields
$ds = \sqrt{dx^2+(cos(x) \cdot dx)^2}$
and solving for $$dx$$ gives
$dx = {ds \over \sqrt{cos(x)^2 + 1}}$
For any station $$x$$ this defines the required $$dx$$ to obtain the desired $$ds$$. Useful for plotting curves using constant segment lengths or constant speed driving on a curved road ;-)
The "General" answer depends on the equation - not all have simple Solutions for $$dx$$. Then some nonlinear solver resp. iteration would be needed.
 « Next Oldest | Next Newest »

 Messages In This Thread Constant speed - Tugdual - 04-04-2016, 10:33 PM RE: Constant speed - PANAMATIK - 04-05-2016, 07:01 AM RE: Constant speed - Tugdual - 04-05-2016, 07:19 AM RE: Constant speed - Dave Britten - 04-05-2016, 11:14 AM RE: Constant speed - Tugdual - 04-05-2016, 06:04 PM RE: Constant speed - Dave Britten - 04-06-2016, 11:16 AM RE: Constant speed - Tugdual - 04-07-2016, 06:13 AM RE: Constant speed - Dave Britten - 04-07-2016, 11:16 AM RE: Constant speed - Martin Hepperle - 04-11-2016 02:01 PM RE: Constant speed - Tugdual - 04-11-2016, 03:53 PM RE: Constant speed - Martin Hepperle - 04-13-2016, 03:29 PM RE: Constant speed - Tugdual - 04-13-2016, 06:30 PM RE: Constant speed - Martin Hepperle - 04-18-2016, 07:27 AM

User(s) browsing this thread: 1 Guest(s)