Re: Refine, assumptions, domains
- To: mathgroup at smc.vnet.net
- Subject: [mg101717] Re: [mg101690] Refine, assumptions, domains
- From: "David Park" <djmpark at comcast.net>
- Date: Wed, 15 Jul 2009 07:09:19 -0400 (EDT)
- References: <16890022.1247564496026.JavaMail.root@n11>
This probably is not quite what you want because it starts with a candidate list of integers. But still, I found it an interesting construction that I hadn't used before. TakeWhile[Range[10], 0 < # \[Pi] < 10 &] {1, 2, 3} David Park djmpark at comcast.net http://home.comcast.net/~djmpark/ From: Richard Fateman [mailto:fateman at cs.berkeley.edu] What I'm looking for is a simple way to obtain a finite list { Pi, 2 Pi, 3 Pi} from this information: 0< n*Pi < 10, Element[n,Integers] Refine doesn't do this, at least with Mathematica 6.0 Suggestions? (cc to fateman at gmail.com would be nice.)