Skip to main content

A measurer needs to add a known distance D to a race course by turning up Diversion Street and returning to Continuous Street.  The curbs have a known radius R.  The street has a known width W and the turnaround point is exactly in the middle of the street.  The rider’s path is exactly 1’ out from the curb.  The streets intersect at a right angle.   

 

 

How do you calculate the distance from Point A to Point C?

Attachments

Images (2)
  • mceclip0
  • mceclip1
Original Post

Replies sorted oldest to newest

This from a friend / college math professor Dr. Michael Coleman at U of Albany:
"Now we hit the bad news - since we've got both inverse trig and some square roots floating around, the easiest way to envision the solution - just substitute in until it's a single variable problem, and solve - is bad news. VERY bad news. We need to solve:
 
d = sqrt((y-sqrt(r^2-a^2))^2 - ((((r^2-a^2)-y*sqrt(r^2-a^2))/a)^2)) + arccos(-a/r)*r
 
which is a nasty enough symbolic manipulation problem that the solvers I have access to on my home PC are throwing a "computation time exceeded" error, and I'm suspicious there's at least one branch in there. So I'm going to see if I can be more clever and present the problem in a way that doesn't cause that. Realistically, though, this says a numerical approximation is your best bet."
So, while there (likely) IS a direct solution, what Michael Bowen suggests is a more practical approach mathematically.
Knowing all this, I will stick with about 6 brute force successive approximations.
 

Crikey. If I had known trigonometry and calculus would have been this important, so many years after college.

And I just realized - reading the problem again - I goofed.

Line segment AB² = (½ Diversion Street Width)² + (Distance from Continuous Street up Diversion Street)² -or-

Line Segment AB² = (10²) + (25²) -or-

Line Segment AB² = (100) + (625) -or-

Line Segment AB² = 725 -or-

Line Segment AB = 26.925824

Sorry, Oscar!

The smaller green circle is a complete circle of the radius of curvature of the curb.   Larger orange circle would be the other 3/4 of 1' wider path ridden.    "25 HIGH" (height of a right triangle) is distance from Continuous Street curb to a line running through the actual turnaround point. 

Very astute, also, Admin: I do not know what Dr. Coleman is calling "a" either.  I need to ask. 

After seeing that it was not a simple problem, I have been coding to calculate the distances for known angles.  Am in the process of trying to condense that code which is based on a different approach. Major value of the Coleman Equation is that it shows if a college prof does not say, "Hey, that's simple" then it is going to take a while.  Fun exercise even if mainly academic.   

I kind of assumed "a" was the width of the street (or half the width?) and "y" was the vertical distance from the cross street to the turn-around point. And you are solving for "y" for known values of "a" and "d." But just wanted to confirm that's the case.

I think the problem becomes trivial if you assume the path turns abruptly at a single point back at the cross street rather than following a turning radius. And the change in distance will also be trivial between the those two paths. If you use the solution to that simpler path as the starting point for iteratively solving the equation for the more complex path, you would probably be able to converge pretty quickly.

I thought "a" was the half width of the road in his equation, but that can't be the case since for reasonable values of "r" and "a" the term sqrt(r^2-a^2) would be the square root of a negative number.

y = sqrt[ (d-r)^2 - a^2 ]

In the above equation y is the vertical distance from the cross street to the TA point, given a required path distance d, a street half width a, and turning radius r. This is for a path that starts at point A and ends at a point along the edge of the cross street even with the center of the turning radius (same horizontal coordinate as point C), and passes through the point that is the intersection of the curb edges.

A path that follows the circular arc around the street intersection and ends at point C will be slightly longer, so the value of y solving his equation will be slightly smaller than the solution to the above equation.

I think if you (or he) uses the value of y given by the above equation as a starting point in your iterative solver, convergence will happen much more quickly. But I don't understand his equation because I don't know what "a" is, or what "y" is for that matter.

I'm still confused. In the real world the only value that you control is "x." The street width and curb radius are what they are.

So I assume the problem statement is, given values of y and r, find the value of x that gives the desired distance d. But you would still need an equation for "a." "a" is not an independent variable. It's a function of x, y, and r.

Last edited by Admin

Oscar - why would you need to calculate this? I do not get the practical application you have in mind for this.

Anyway, if you know the radius or diameter of the circle on which points B and C lie, you can calculate the circumference easily enough, right? Then, using a graphics program - or even just eyeballing it - calculate or estimate the % the segment represents of the circumference. 

I could determine the % very closely in Corel Draw. However, in your diagram, it appears to me that the segment is about 20% of the circumference. If you then calculate 20% of the circumference, would this then not be accurate enough for your application?

Yes, Race Resources that would be a very practical approximation method.

I started out thinking that there must be some simple way to do this exactly. After a bunch of smart people looked at it, turns out it IS an extremely difficult math problem. Because of that, it is nothing we are ever going to use.  Today I was just trying to explain what the variable  'a' was.  Dr. Coleman started using x1, y1 etc but it got so hairy so fast, he went to single character Cartesian points for simplicity, or a,b.  

Yes, even knowing d (distance needed), r and y (half the width of the road) you still have to solve for 'a'.  I am guessing that is what crashed his program.

I tried to get that equation to execute with 'a' as a known and solving for d.  Somewhere in those 8 sets of nested parentheses, is something that JustBasic does not like.  

It is a tough problem with a minimal payoff but my hat is off to anyone who can solve that equation for 'a'!

I edited my previous post to switch x and y. y is the half width of the road and x is the distance out to the turn-around.

But anyway, I don't think the equation you posted for d is correct. Consider the case of no turn-around. Then the distance traveled is 2y, the width of the road. In this case a would be 0. Plugging a=0 into the equation gives a division by 0. But even setting a to a very small value doesn't result in a distance traveled that is approaching 2y. Actually it results in a square root of a negative number.

Final Answer:  Prize for best solution goes to Mark Neal who caught the minus sign that should have been a plus.  Everything worked fine after that.  He came up with an Excel Goal Seeker routine that gets the right answer to 5 places in the blink of an eye.  My “copycat” Basic routine took about 20 seconds for higher angles. 

  Dr. Coleman says he does not like to “let practical considerations get in the way of interesting math” but pointed out you can:

Draw the problem with the curve represented by the radius from –r,0 to –r, r.

  1. Subtract 2 * r from the distance needed. This is the hypotenuse of a right triangle with a height ALWAYS = to half the street width – 1 or Y.
  2. X for this triangle is the square root of the hypotenuse squared minus height squared.

 Example:  Need = 100’  more   Street = 20’ wide   Curb radius = 2’   Ride radius = 3

 100’ –  (2 * 3) = 94.   Then    94 / 2 = 47  Next  x = sqrt(47^2 – 9^2) =   46.13

This is from a point 1 foot W of curb line so out 45.13 feet.  This is exact at “no extra distance needed.  For very long distances, this is never more than 1.30 feet short.  

Attachments

Images (2)
  • mceclip0
  • mceclip1

Add Reply

Post
×
×
×
×
Link copied to your clipboard.
×