# Viewing points by their name instead of their value...

BEMath shared this question 8 years ago

Dear GeoGebra Friends,

Is there a simple way to see the names of points in a sequence of points instead of their actual coordinates?

With help, I created this sequence of points:

Flights = {(-2.28, 4.26), (3.16, -3.26), (0.52, 5.62), (-3.02, 1.54), (2.7, 4.34), (5.38, -3.14), (4.96, 4.2), (0.78, -2.46), (6.32, 5.14), (3.16, -3.26), (-2.28, 4.26), (-3.02, 1.54), (0.52, 5.62), (5.38, -3.14), (2.7, 4.34), (0.78, -2.46), (4.96, 4.2), (3.16, -3.26), (6.32, 5.14), (-3.02, 1.54), (-2.28, 4.26), (5.38, -3.14), (0.52, 5.62), (0.78, -2.46), (2.7, 4.34), (3.16, -3.26), (4.96, 4.2), (-3.02, 1.54), (6.32, 5.14), (5.38, -3.14), (-2.28, 4.26), (0.78, -2.46), (0.52, 5.62), (3.16, -3.26), (2.7, 4.34), (-3.02, 1.54), (4.96, 4.2), (5.38, -3.14), (6.32, 5.14), (0.78, -2.46), (-2.28, 4.26)}

Is there a way to see that, for example, (-2.28, 4.26) is named A1 in the points declarations? I would love to be able to see the sequence {A1, B1, A2,...}. It would help me immensely checking if the sequence is correct.

Again, thanks! :-)

--Ben

1

Hi Ben,

Normally, you generate parallel the name list and the list of points-coordinate with slightly modified commands (synthetic). But that is no control because the same error is found in both sequences.

Here is a solution that determines the names analytically. Each coordinate is compared with each name in a nested zip-command.

Raymond

https://ggbm.at/563417

1

Dear Raymond,

Thanks so much for the code! :-D That is very helpful... and very clever! ;-)

Thanks!

--Ben