Properties
Category
Romanian
Statistics
Comments
3
Participants
3
Subscribers
0
Votes
1
Views
1010
Share
AreEqual and list
Answered
I want to test if point E AreEqual with many points. I use :
If[AreEqual[E, P] ∨ AreEqual[E, Q] ∨ AreEqual[E, A] ∨ AreEqual[E, B] ∨ AreEqual[E, C] ∨ AreEqual[E, D], false, true]
It is possible to replace points P,Q,R,A,B,C,V with an list ?
 GeoGebra
 Help
 Partners

Contact us
 Feedback & Questions
 This email address is being protected from spambots. You need JavaScript enabled to view it.
 +43 677 6137 2693
© 2021 International GeoGebra Institute
You can use E∈{P,Q,R,A,B,C,V} .
Yes. This work.
But if I have 30 or more points is easy with an list...
Thank you very much
List1=List of your points
List2=sequence[AreEqual[E,Element[List1,k]],k,1,len[List1]]
c=sum[List2]
Shorter: c=sum[sequence[AreEqual[E,Element[List1,k]],k,1,len[List1]] ]
The value of c ist 0 if E is different from all elements of List1,
and c=1 if E is equal to one point from list1.
Comments have been locked on this page!