MathGroup Archive 2011

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

Search the Archive

FindInstance with all positive numbers


Hi,

To ensure FindInstance[] returns all positive numbers I would do:

FindInstance[a+b=5&&a>0&&b>0,{a,b}];

However I need to do the same but without having to list all individual variables. The reason is that I will be iterating through lists with a large, variable number of elements so writing out a>0&&b>0 all the way until z>0 is impractical.

Thanks.



  • Prev by Date: Re: Matematica Beginner/Student and Mysql
  • Next by Date: Re: bug ?
  • Previous by thread: Re: Color Slidder Bar Button & Panel Face
  • Next by thread: Re: FindInstance with all positive numbers