MathGroup Archive 2004

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

Search the Archive

Re: Diophantic Equations with Constraints


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