Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'how to determine if element is in Set' topicStudent Support Forum > General > Archives > "how to determine if element is in Set"

Next Comment >Help | Reply To Topic
Author Comment/Response
John F. Davis
04/02/07 08:32am

Hello

I would like to write an if condition to look for the number 3 in the set {1,2,3}.

Actually, I have 3 as a counter and the set as
list.

I did this {i} \[Element] G[[j]] but it just returned something like this:
3 \[Element] {1,2,3} instead of True or False.

Any idea?

URL: ,

Subject (listing for 'how to determine if element is in Set')
Author Date Posted
how to determine if element is in Set John F. Davis 04/02/07 08:32am
Re: how to determine if element is in Set yehuda ben-s... 04/03/07 01:09am
Next Comment >Help | Reply To Topic