0
$\begingroup$

I can use Integers to represent integers.

How to represent positive integers?

I can define MyAssumptions = Element[{x, y}, Integers] && x > 0 && y > 0.

But I want a more concise way because I need to define assumption for a lot of variables.

$\endgroup$
  • 5
    $\begingroup$ vars = Array[x, 10]; Element[vars, Integers] && And @@ Thread[vars > 0] $\endgroup$ – Bob Hanlon Nov 22 '18 at 19:49

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.