MathGroup Archive 2006

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

Search the Archive

Re: NSolve and array

  • To: mathgroup at
  • Subject: [mg64763] Re: NSolve and array
  • From: Bill Rowe <readnewsciv at>
  • Date: Thu, 2 Mar 2006 06:48:08 -0500 (EST)
  • Sender: owner-wri-mathgroup at

On 3/1/06 at 4:11 AM, at wrote:

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

I am going to guess that the problem you are having is not knowing how to deal with an output in the form of {x->2.3, ... }, i.e., a list of replacement rules.

This can be converted to a list of values using the "/." operator. That is


will output 2.3 and 

{x, y}/.{x->2.3, y->5.6}

will output

{2.3, 5.6}

Hopefully, this is enough to get you started. But if not, try asking again while posting what you have tried. If we can see the Mathematica code you are trying with a description of what you want, it is a lot easier give constructive suggestions.
To reply via email subtract one hundred and four

  • Prev by Date: Re: NSolve and array
  • Next by Date: Rayica and LensLab for Mathematica now available
  • Previous by thread: Re: NSolve and array
  • Next by thread: Editing a Palette Notebook