Re: Diophantic Equations with Constraints
- To: mathgroup at smc.vnet.net
- Subject: [mg49465] Re: [mg49443] Diophantic Equations with Constraints
- From: DrBob <drbob at bigfoot.com>
- Date: Wed, 21 Jul 2004 06:39:28 -0400 (EDT)
- References: <200407201153.HAA23709@smc.vnet.net>
- Reply-to: drbob at bigfoot.com
- Sender: owner-wri-mathgroup at wolfram.com
Unfortunately, that example has no solution:
Reduce[{3*x + 2*y - z == 148,
3 <= x <= 8, 0 <= y <= 12,
1 <= z <= 9}, {x, y, z}]
False
FindInstance[
{3*x + 2*y - z == 148,
3 <= x <= 8, 0 <= y <= 12,
1 <= z <= 9}, {x, y, z}]
{}
But this one does:
FindInstance[{3*x + 2*y - z == 148,
3 <= x <= 80, 0 <= y <= 12, 1 <= z <= 9}, {x, y, z}]
{{x -> 133/3, y -> 12, z -> 9}}
Bobby
On Tue, 20 Jul 2004 07:53:38 -0400 (EDT), Michael S. <MikeSuesserott at t-online.de> wrote:
> 3x + 2y - z == 148
--
DrBob at bigfoot.com
www.eclecticdreams.net
- References:
- Diophantic Equations with Constraints
- From: "Michael S." <MikeSuesserott@t-online.de>
- Diophantic Equations with Constraints