MathGroup Archive 1997

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

Search the Archive

Re: Integer Solutions

>Does anybody know how mmka can give _ALL_ solutions that are Integers??
>I want for example to solve the equation x+y=3 x>0 y>0 and get
>{{3,0}, {2,1}, {1,2}, {0,3}}


The following will work:

eqn= x+y==3;
Table[{x,y} /. sol[[1]],{x,0,3,1}]


Des Penny

Des Penny
Physical Science Dept.
Southern Utah University
Cedar City, UT 84720

VOICE: (Office): (801) 586-7708
       (Home)  : (801) 586-2286
FAX:    (801) 865-8051
e-mail: penny at

  • Prev by Date: Re: Symbols, names, objects
  • Previous by thread: Integer Solutions
  • Next by thread: How to solve this?