Mathematica 9 is now available
Student Support Forum
Student Support Forum: 'MemberQ' topicStudent Support Forum > General > Archives > "MemberQ"

Next Comment >Help | Reply To Topic
Author Comment/Response
05/30/10 04:49am

I just have started working with Mathematica and stumbled over the following problem:

How can I define a function that returns true if an element of a list is greater than n. I have been trying to do this using MemberQ[list, pattern] but it wont work.

If list={1,2,3,4,5} and n=3, then the function should return true as 4 and 5 are greater than 3.

The solution for this might seem trivial but again I am a beginner and really need to know how to do this.



URL: ,

Subject (listing for 'MemberQ')
Author Date Posted
MemberQ George 05/30/10 04:49am
Re: MemberQ Peter Pein 06/01/10 6:29pm
Re: Re: MemberQ George 06/02/10 08:47am
Re: Re: Re: MemberQ Peter Pein 06/03/10 09:02am
Re: MemberQ yehuda ben-s... 06/03/10 05:51am
Re: MemberQ George 06/05/10 08:24am
Next Comment >Help | Reply To Topic