# How to filter points which have the same coordinates

János Losonczi shared this question 1 year ago

Dear All,

I have lists of points, which sometimes contain duplicates, triplicates. I'd like to filter them.

My idea is a GG script, where I would get the x and y coordinates of the points in a Sequence loop, and compare them. The results of comparisons would show duplicates.

Unfortunately I don't know the set of GG commands deeply enough, so maybe there are shorter, simpler, nicer solutions of my question.

Do you have idea?

Best regards,

JL

1

It's quite impossible to help you if you don't attach a file, with a brief explanation about what you want to get.

From a general standpoint, the If command might be useful.

1

Sorry, my question was not complete, I sent my question by mistake. Now it is complete.

1

Try this: https://wiki.geogebra.org/e...

1

Supplement to manual: command Unique()

works also with points.

So it is not necessary to treat the x- and y-coordinates separately.

1

Yes, this is what I wish!

You may close my question.

Thanks

1

List:={(1, 0.99999999999999) , (1,1), (1,1,000000000001)}

Unique(List) = ???

??: in geogebra: 1.00000000000001 == 1.0 ??

That is my question as comment to Your question!

W.F.

1

Quote: ??: in geogebra: 1.00000000000001 == 1.0 ??

Answer for the command Unique(<pointlist>): yes (tested).

---------------

Attached a solution with "approximative unique points" (with tolerance in a slider).