Re: Diophantic Equations with Constraints
- To: mathgroup at smc.vnet.net
- Subject: [mg49475] Re: Diophantic Equations with Constraints
- From: Paul Abbott <paul at physics.uwa.edu.au>
- Date: Wed, 21 Jul 2004 06:40:08 -0400 (EDT)
- Organization: The University of Western Australia
- References: <cdj1t2$nbi$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
In article <cdj1t2$nbi$1 at smc.vnet.net>,
"Michael S." <MikeSuesserott at t-online.de> wrote:
> given an equation like
>
> 3x + 2y - z == 14
> with
> x in Range[3,8],
> y in Range[0,12],
> z in Range[1,9],
>
> what would be the best way to solve this?
Reduce[{3x + 2y - z == 14, 3 < x < 8, 0 < y < 12, 1 < z < 9}, {x, y, z}]
Cheers,
Paul
--
Paul Abbott Phone: +61 8 9380 2734
School of Physics, M013 Fax: +61 8 9380 1014
The University of Western Australia (CRICOS Provider No 00126G)
35 Stirling Highway
Crawley WA 6009 mailto:paul at physics.uwa.edu.au
AUSTRALIA http://physics.uwa.edu.au/~paul