Re: Summation of imported data
- To: mathgroup at smc.vnet.net
- Subject: [mg118902] Re: Summation of imported data
- From: Ray Koopman <koopman at sfu.ca>
- Date: Sun, 15 May 2011 07:04:06 -0400 (EDT)
- References: iqla6j$a10$1@smc.vnet.net
On May 14, 12:15 am, Thomas <imadork... at gmail.com> wrote: > I know what I want to do but I dont know how to implement it onto Mathematica. > > What I am trying to do is create an objective function that I can get a good fit to my data points. > > The function I want to minimize is: > Cstardiff[t_, De_, dprime_] := 1 - 2 dprime Sqrt[t De/Pi] > > I have two imported data sets, time1 and con1 that are in lists > > So I want to do a summation from i=1 to 63, (because there is 63 terms for each imported data set), and my summation function would be: > (con1(i) - Cstardiff[time1(i), De_, 1])^2 > > If anyone can help me with this that would greatly appreciated! #.#&[con1 - Cstardiff[time1, De, 1]]