Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2002
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2002

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

Search the Archive

Intersection of sets of results

  • To: mathgroup at smc.vnet.net
  • Subject: [mg37099] Intersection of sets of results
  • From: "flip" <flip_alpha at safebunch.com>
  • Date: Wed, 9 Oct 2002 05:25:55 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Hello All,

I have two equations that I have solved for:

x[n_]  := 2331 + 8 n
y[n_] :=  -3108 - 11n

I want to include only solutions which are non-negative, that is x >= 0 and
y >= 0.

In this example we can do 2331 + 8n > = 0 and solve for n, n >= -291.375
and -3108 - 11 n >= 0 and solve for n, n <= -282.545

So we have -291.375 <= n <= -282.545.

The "integer solution set here is for n =
{-290, -289, -288, -287, -286, -285, -284, -283}.

So in this case we have 8 non-negative solutions.

Given that I can supply x[n] and y[n], how do I go about finding the set n?

Thank you for any inputs, Flip




  • Prev by Date: Re: RealTime3D
  • Next by Date: Re: Sum of 1/Primes
  • Previous by thread: Re: Is {d,e,f}[a] meaningful or useful?
  • Next by thread: Re: Intersection of sets of results