Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1999
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*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 smc.vnet.net
  • Subject: [mg19107] Re: Conversion of output
  • From: "Atul Sharma" <atulksharma at yahoo.com>
  • Date: Thu, 5 Aug 1999 01:35:23 -0400
  • References: <7o5hml$rl4@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Use the rule generated by NonLinearFit to substitute into your vector:

rules={a1 -> 0.00400772472374540367, a2 -> -1.90417580406264459*10^-6,
a3 -> 499088.922439139537, a4 -> 1.31534993678125777*10^-9,
a5 -> 7728.37550019371821};

desiredVector={a1,a2,a3,a4,a5}/.rules

Done this way, the variables a1, a2, ... remained undefined, so you can
re-run the Fit routine without conflict, and pick out the elements of
desiredVector[[ ]] as needed.

A. Sharma


Christopher Mack wrote in message <7o5hml$rl4 at smc.vnet.net>...
>Hello,
>
>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 ?
>
>Thanks,
>
>Christopher Mack,
>
>Darmstadt University of Technology
>




  • Prev by Date: Can someone explain this?
  • Next by Date: Re: equaltity of lists
  • Previous by thread: Re: Conversion of output
  • Next by thread: Re: Conversion of output