Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1999

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

Search the Archive

Re: Conversion of output

  • To: mathgroup at
  • Subject: [mg19056] Re: Conversion of output
  • From: "P.J. Hinton" <paulh at>
  • Date: Thu, 5 Aug 1999 01:34:47 -0400
  • Organization: "Wolfram Research, Inc."
  • References: <7o5hml$>
  • Sender: owner-wri-mathgroup at

On 2 Aug 1999, Christopher Mack wrote:

> when using the NonlinearFit-function of Mathematica, I get an 
> output like 
>  {a1 -> 0.00400772472374540367, a2 -> -1.90417580406264459*10^-6, 
>     a3 -> 499088.922439139537, a4 -> 1.31534993678125777*10^-9, 
>     a5 -> 7728.37550019371821}
> I'd like to convert this output to a vector with five elements 
> (containing the values of a1 to a5 shown above). 
> Can anybody tell me how to do this ?

This is an FAQ.

The question is targeted toward extracting values from the results of
Solve[] or FindRoot[], but is is true for any function that returns its
results as a list of replacement rules.

P.J. Hinton
Mathematica Programming Group           paulh at
Wolfram Research, Inc.
Disclaimer: Opinions expressed herein are those of the author alone.

  • Prev by Date: Re: Controlling GIF size
  • Next by Date: Mac 4.0 FE fix for "Assertion error matheditio:1508"
  • Previous by thread: Re: Conversion of output
  • Next by thread: Re: Conversion of output