Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #8599
| From | Murray Eisenberg <murray@math.umass.edu> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: extract only positive solutions |
| Date | 2012-02-18 11:31 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jho26d$5tb$1@smc.vnet.net> (permalink) |
| References | <201202171123.GAA25395@smc.vnet.net> |
This sort of thing has been asked and answered many times before, and
you'll probably get lots of answers now. here's one way:
Select[pairs, Last@# > 0 &]
On 2/17/12 6:23 AM, Gabby Domingo wrote:
> hi all! how do you extract only positive solutions to a solver, like
> NSolve?
>
> sol={{-.532,.932},{.34,23}}
>
> and extract {.34,.23}?
>
--
Murray Eisenberg murray@math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower phone 413 549-1020 (H)
University of Massachusetts 413 545-2859 (W)
710 North Pleasant Street fax 413 545-1801
Amherst, MA 01003-9305
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: extract only positive solutions Murray Eisenberg <murray@math.umass.edu> - 2012-02-18 11:31 +0000
csiph-web