Re: MemberQ
- To: mathgroup at smc.vnet.net
- Subject: [mg68556] Re: [mg68503] MemberQ
- From: "Chris Chiasson" <chris at chiasson.name>
- Date: Wed, 9 Aug 2006 04:20:36 -0400 (EDT)
- References: <200608081028.GAA29635@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Even though the two entries are formatted as .7, the one generated by the Range statement has already accumulated enough error to make it fail MatchQ. You can see this with {Range[0., 1., .1], .7} // FullForm On 8/8/06, Bruce Colletti <vze269bv at verizon.net> wrote: > Re Mathematica 5.2.0.0. > > Since 0.7 is in the set {0.0, 0.1, 0.2,..., 0.9, 1.0}, why does MemberQ[Range[0., 1., .1], .7] return False? > > Thankx. > > Bruce > > -- http://chris.chiasson.name/
- References:
- MemberQ
- From: Bruce Colletti <vze269bv@verizon.net>
- MemberQ