I recently stumbled across the cool Desmos feature that it can draw curves implicitly defined by distance relationships, ancient-Greek-style, e.g. this for a parabola:
distance( (x,y), (0,1) ) = distance( (x,y), (x,0) )
I learned about it here, by the way:
My question is: can I extract the coordinates of specific points from such a curve? For example, here:
The green line successfully uses a distance formula to draw a line at the y-value of the point equidistant between the focus and the draggable point on the directrix, but I canât figure out how to actually extract that y-value from Desmos.
It would of course be possible to calculate that y-value analytically, but that would be ugly and would go against the whole spirit of the distance-defined curve. Also, it seems pointless, because Desmos clearly has the value in it somewhere, as it uses it to draw the green line at the correct height!
Unfortunately, there are quite a few occasions where Desmos âknowsâ certain values - and is happy to display them on a trace - but it is difficult to surface them to use elsewhere. Particularly roots of a polynomial or points of intersection. It would be wonderful to have, even in beta form, access to whatever is clearly knownâŚ
In this specific case, you can get what you want by changing y to any unused variable (other than x) and changing the = to a ~. Essentially itâs a sort-of hack of the regression calculator, but in this case it surfaces an estimation of the value of âyâ (whatever youâve changed it to):
Be aware that this requires a lot more computation - it slows interactions with the graph down quite noticeably on this basic Chromebook Iâm using presently - but it at least surfaces the âyâ for you to use elsewhere.
If youâve not played with this before, you can âhackâ certain single solutions out of the regression calculator using things like f(b)~0 or whatever - but itâs not an exact science, and if youâre looking for multiple solutions it is not going to give those.
Thanks, that regression trick is a good one, and I didnât know about it. Thanks! I fully agree with you that itâs not a very resource-efficient way of extracting info that Desmos has already internally calculated!