MathGroup Archive 2009

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

Search the Archive

Re: Refine, assumptions, domains

  • To: mathgroup at smc.vnet.net
  • Subject: [mg101723] Re: [mg101690] Refine, assumptions, domains
  • From: Leonid Shifrin <lshifr at gmail.com>
  • Date: Wed, 15 Jul 2009 07:10:26 -0400 (EDT)
  • References: <200907140937.FAA02004@smc.vnet.net>

Hi Richard,

If you know the upper bound on the maximal number of solutions you want,
you can do something like this:

In[1] =
Clear[n];
Pi*n /. FindInstance[0 < n*Pi < 10, n, Integers, 100000]

Out[1] =

{ Pi, 2 Pi, 3 Pi}

Regards,
Leonid



On Tue, Jul 14, 2009 at 2:37 AM, 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.)
>
>



  • Prev by Date: Determine if a parameter is a function
  • Next by Date: Re: CityData seems to be dead.
  • Previous by thread: Re: Refine, assumptions, domains
  • Next by thread: Re: Refine, assumptions, domains