MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Refine, assumptions, domains

  • To: mathgroup at
  • Subject: [mg101717] Re: [mg101690] Refine, assumptions, domains
  • From: "David Park" <djmpark at>
  • 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  

From: Richard Fateman [mailto:fateman at] 

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 would be nice.)

  • Prev by Date: Re: CityData seems to be dead.
  • Next by Date: Re: Assigning Values to Many Symbols at Once
  • Previous by thread: Re: Refine, assumptions, domains
  • Next by thread: Re: Refine, assumptions, domains