Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Find the location of a signpost with given distances to a set of cities
ResourceFunction["WorldTravellerSignpostSolve"][{{loc1, dist1},{loc2, dist2},…}] given the locations loci and distances disti find the location of the signpost. |
Given a set of cities and their distance, what is the location of the signpost:
| In[1]:= | ![]() |
| Out[2]= |
Numbers are interpreted as kilometers:
| In[3]:= | ![]() |
| Out[4]= |
Given the signpost, find the location:

| In[5]:= | ![]() |
| Out[6]= |
Find the country:
| In[7]:= |
| Out[7]= |
Visualize the lines and the found minimum:
| In[8]:= |
| Out[8]= | ![]() |
Investigate the effect of the precision of the distances on the final location. Given a location, and some random cities, find the estimates for 'rounded' distances:
| In[9]:= | ![]() |
| Out[14]= | ![]() |
Plot the error in the location as a function of the rounding:
| In[15]:= | ![]() |
| Out[15]= | ![]() |
We see that the error in the location is much better than the errors introduced by rounding.
Wolfram Language 13.0 (December 2021) or above
This work is licensed under a Creative Commons Attribution 4.0 International License