MathGroup Archive 2006

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

Search the Archive

Re: NSolve and array

  • To: mathgroup at smc.vnet.net
  • Subject: [mg64753] Re: [mg64714] NSolve and array
  • From: sir_puding at tut.by
  • Date: Thu, 2 Mar 2006 06:47:45 -0500 (EST)
  • References: <200603010911.EAA19363@smc.vnet.net>
  • Reply-to: sir_puding at tut.by
  • Sender: owner-wri-mathgroup at wolfram.com

> Hi every body. I have a problem with mathematica and I would be very
> glad if some one helps me.
> The problem is that I find the roots of  polynomial by NSolve and I
> want to put the results in an array for further manipulation, but I do
> not know how can I do it. More precisely I want to return the results
> of NSolve to an array or similary list.

> Would you please help me?
use "/." operation for obtained list of rules.

Smth. like

tmp={};
For[i=0,++i<Length[RootsArray]+1,
tmp=Append[tmp,x/.RootsArray[[i]]];
]

if RootsArray is smthing like
{{x->1213},{x->123234},{x->34523453},{x->352342}}



  • References:
  • Prev by Date: Re: pictures of mathematics on a non-white background
  • Next by Date: Help: running external program on Mac OS X
  • Previous by thread: Re: NSolve and array
  • Next by thread: Re: NSolve and array