PDA

View Full Version : Where does my (small) notebook go wrong?


Shukie
Mar1-10, 07:34 PM
Hi all,

A few days ago I have done an experiment with a spectroscope to find the value of Rydberg's constant. In my notebook I have a dataset that I want to use a NonLinearModelFit on to find this constant. However, it will not work and I just can't figure out why it won't. I have gotten rid of everything else in the notebook to keep it as clear as possible:

24028

Could anyone please take a look?

Hepth
Mar2-10, 12:17 AM
I think the problem is all in your starting points. Do you have a better starting point for "p" than one?
I see that {p,0} or {p,0.027} works:

fit3 = NonlinearModelFit[
dat1, \[Theta]nul + \[Alpha] + (ArcSin[p k - Sin[\[Alpha]]]), {{p,
0}, {\[Theta]nul, 3.15}, {\[Alpha], 0.}}, k, Weights -> wt]

Shukie
Mar2-10, 07:48 AM
Thanks a bunch, that works indeed!