report value of "taxicab distance" instead of Euclidean distance

Jeff Barrett shared this question 3 months ago
Answered

How can I report the "value" of a segment, say AB to be the absolute value of the difference of x coordinates, added to the absolute value of the difference of the y coordinates? I am trying to build a segment that reports its "value" for Taxicab length, not Euclidean length.

thanks,

Jeff

Comments (4)

photo
1

AB = abs(x(A)-x(B)) + abs(y(A)-y(B))

You could make a custom tool/command that does that https://wiki.geogebra.org/e...

photo
1

Dear Michael,

Thank you. This is what I needed, a way to set up my own tool as a "button". Now I can work on building my own procedures.

Best regards,

Jeff

photo
photo
2

une partie de mon travail (ce qui a été rapatrié de Hongrie)


https://www.geogebra.org/m/wj9ksn33

photo
1

Thank you Noel! This is great. I will try to learn as I work through what I see you have accomplished.

Jeff

photo
© 2021 International GeoGebra Institute