I want to solve a system of equations in Mathematica where all variables are restricted to be integers between -3 and 11. Which Domain restrictions do I have to pass to Reduce / how to properly specify this? I don't get it.

  • $\begingroup$ You can add these constraints as inequalities to your set of equations. $\endgroup$
    – Roman
    Jul 27, 2019 at 21:56
  • 2
    $\begingroup$ does Reduce[{expr, And@@ Thread[ -3 <= variables <= 11]}, variables, Integers] give what you need? $\endgroup$
    – kglr
    Jul 27, 2019 at 21:57
  • $\begingroup$ This answer should be quite sufficient w.r.t. your expectations. $\endgroup$
    – Artes
    Jul 27, 2019 at 22:36


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.