Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

Re: How can I make the NSolve output the roots meeting the constraint

  • To: mathgroup at smc.vnet.net
  • Subject: [mg86452] Re: How can I make the NSolve output the roots meeting the constraint
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Tue, 11 Mar 2008 05:33:11 -0500 (EST)
  • Organization: Uni Leipzig
  • References: <fr5e83$od3$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de

Hi,

Select[NSolve[
   z^6 == 1, z], Abs[Im[z /. #]] < $MachineEpsilon && Re[z /. #] > 0 &]

Regards
   Jens

Elements wrote:
> Hi everyone,
>  I'm dealing with an equation with NSolve, and  there are many roots
> of this equation, but I only need the roots which a real and positive.
> So which function or option should I choose?
> Thanks!
> 


  • Prev by Date: change the position of documentaiotnal center in v6
  • Next by Date: Re: getting prints at desired scale
  • Previous by thread: change the position of documentaiotnal center in v6
  • Next by thread: Insert collapsible sections in mathematica 6 tia sal2