Where does my (small) notebook go wrong?

  • Thread starter Shukie
  • Start date
  • #1
96
0
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:

View attachment Notebook1.nb

Could anyone please take a look?
 

Answers and Replies

  • #2
Hepth
Gold Member
448
39
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:
Code:
fit3 = NonlinearModelFit[
  dat1, \[Theta]nul + \[Alpha] + (ArcSin[p k - Sin[\[Alpha]]]), {{p, 
    0}, {\[Theta]nul, 3.15}, {\[Alpha], 0.}}, k, Weights -> wt]
 
  • #3
96
0
Thanks a bunch, that works indeed!
 

Related Threads on Where does my (small) notebook go wrong?

Replies
5
Views
10K
Replies
1
Views
2K
Replies
1
Views
2K
Replies
6
Views
2K
Replies
2
Views
3K
Replies
1
Views
2K
Replies
1
Views
1K
Replies
3
Views
9K
Top