Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*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 2004

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

Search the Archive

Re: Diophantic Equations with Constraints

  • To: mathgroup at smc.vnet.net
  • Subject: [mg49460] Re: Diophantic Equations with Constraints
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Wed, 21 Jul 2004 06:39:20 -0400 (EDT)
  • Organization: Universitaet Leipzig
  • References: <cdj1uv$nbm$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

Flatten[Table[
      If[TrueQ[3x + 2y - z == 14], {x, y, z}, Null],
      {x, 3, 8}, {y, 0, 12}, {z, 1, 9}] /. Null :> Sequence[], 2]

Regards
  Jens

"Michael S." wrote:
> 
> The equation should read
> 
>         3x + 2y - z == 14  (not 148)
> 
> Anyway, it's the principle of the thing I'd be interested in.
> 
> Thanks,
> 
> Michael


  • Prev by Date: Applying my function to elements of a vector
  • Next by Date: Simplify doesn't simplify SparseArrays
  • Previous by thread: Re: Diophantic Equations with Constraints
  • Next by thread: Re: Diophantic Equations with Constraints