Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'normalization of a function' topicStudent Support Forum > General > Archives > "normalization of a function"

< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic
Author Comment/Response
Bill Simpson
06/03/13 1:46pm

Look at
http://reference.wolfram.com/mathematica/ref/FindFit.html
and then click on
Scope
and then click on
Constraints and Starting Values

In[1]:= data = {1, 2, 5, 4, 7};
fit = FindFit[data, {
(A + (B Exp[-t/b] + F Exp[-t/f] + G Exp[-t/g] + H Exp[-t/h] +J Exp[-t/j])),
A + B + F + G + H + J == 1
},
{A, B, F, G, H, J, b, f, g, h, j}, t, NormFunction -> (Norm[#, Infinity] &)]

During evaluation of In[1]:= FindFit::eit: The algorithm does not converge to the tolerance of 4.806217383937354`*^-6 in 500 iterations. The best estimated solution, with feasibility residual, KKT residual, or complementary residual of {5.55112*10^-16,0.104452,0}, is returned. >>

Out[2]= {A -> 4.92405, B -> -0.78459, F -> -0.784866, G -> -0.785016, H -> -0.784793, J -> -0.784789, b -> 1.25944, f -> 1.2597, g -> 1.25977, h -> 1.25967, j -> 1.25967}

In[3]:= A + B + F + G + H + J /. fit

Out[3]= 1.

URL: ,

Subject (listing for 'normalization of a function')
Author Date Posted
normalization of a function Mahendra Thapa 06/02/13 8:14pm
Re: normalization of a function Bill Simpson 06/03/13 1:46pm
Re: Re: normalization of a function Mahendra Thapa 06/04/13 4:56pm
Re: Re: Re: normalization of a function Bill Simpson 06/05/13 10:50am
Re: Re: Re: Re: normalization of a function Mahendra Thapa 06/07/13 10:23am
Re: Re: Re: Re: Re: normalization of a function Bill Simpson 06/08/13 11:18am
< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic