Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #8599 > unrolled thread

Re: extract only positive solutions

Started byMurray Eisenberg <murray@math.umass.edu>
First post2012-02-18 11:31 +0000
Last post2012-02-18 11:31 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: extract only positive solutions Murray Eisenberg <murray@math.umass.edu> - 2012-02-18 11:31 +0000

#8599 — Re: extract only positive solutions

FromMurray Eisenberg <murray@math.umass.edu>
Date2012-02-18 11:31 +0000
SubjectRe: extract only positive solutions
Message-ID<jho26d$5tb$1@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

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web