Re: Conversion of output
- To: mathgroup at smc.vnet.net
- Subject: [mg19091] Re: [mg19024] Conversion of output
- From: Maarten.vanderBurgt at icos.be
- Date: Thu, 5 Aug 1999 01:35:10 -0400
- Sender: owner-wri-mathgroup at wolfram.com
Christopher,
Try
{a1, a2, a3, a4, a5} = {a1, a2, a3, a4, a5} /. {a1 ->
0.00400772472374540367, a2 -> -1.90417580406264459*10^-6,
a3 -> 499088.922439139537, a4 -> 1.31534993678125777*10^-9,
a5 -> 7728.37550019371821}.
'/.' stands for ReplaceAll and carries out the substitution rules which are
returned by several functions like e.g. NonlinearFit.
Maarten
Christopher Mack <mack at tvt.tu-darmstadt.de> on 03-08-99 07:44:55 PM
Subject: [mg19091] [mg19024] Conversion of output
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