Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #6009
| From | Arthur Grabovsky <shukrri@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | FindInstance with all positive numbers |
| Date | 2011-10-29 11:25 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <j8gnrm$5hp$1@smc.vnet.net> (permalink) |
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.
Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread
FindInstance with all positive numbers Arthur Grabovsky <shukrri@gmail.com> - 2011-10-29 11:25 +0000 Re: FindInstance with all positive numbers "Dr. Wolfgang Hintze" <weh@snafu.de> - 2011-10-30 09:32 +0000
csiph-web