Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2012

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

Search the Archive

Re: extract only positive solutions

  • To: mathgroup at smc.vnet.net
  • Subject: [mg125024] Re: extract only positive solutions
  • From: Murray Eisenberg <murray at math.umass.edu>
  • Date: Sat, 18 Feb 2012 06:25:38 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <201202171123.GAA25395@smc.vnet.net>
  • Reply-to: murray at math.umass.edu

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 at 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



  • Prev by Date: Re: extract only positive solutions
  • Next by Date: Re: more questions about NIntegrate
  • Previous by thread: Re: extract only positive solutions
  • Next by thread: Re: extract only positive solutions