MathGroup Archive 2009

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

Search the Archive

Re: Refine, assumptions, domains

  • To: mathgroup at smc.vnet.net
  • Subject: [mg101720] Re: [mg101690] Refine, assumptions, domains
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Wed, 15 Jul 2009 07:09:52 -0400 (EDT)
  • Reply-to: hanlonr at cox.net

n*Pi /. {ToRules[Reduce[0 < n*Pi < 10, n, Integers]]}

{Pi, 2*Pi, 3*Pi}


Bob Hanlon

---- Richard Fateman <fateman at cs.berkeley.edu> wrote: 

=============
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.)


--

Bob Hanlon



  • Prev by Date: SphericalPlot3D: shifting the origin
  • Next by Date: Re: CityData seems to be dead.
  • Previous by thread: Re: Refine, assumptions, domains
  • Next by thread: Re: Refine, assumptions, domains