Mathematica notebook not working

  • Thread starter Thread starter Shukie
  • Start date Start date
  • Tags Tags
    Mathematica
Click For Summary
SUMMARY

The forum discussion centers on a user encountering issues with the NonLinearModelFit function in Mathematica while attempting to calculate Rydberg's constant using a specific formula. The user has defined the equation involving parameters such as θ, θ₀, α, and p, where p is calculated as 1/(d*R_H). The main problem lies in the inability to execute the fit method correctly. The suggestion provided is to assign an initial value of 0 to p to troubleshoot the fitting process.

PREREQUISITES
  • Familiarity with Mathematica 12.3 syntax and functions
  • Understanding of NonLinearModelFit and its parameters
  • Basic knowledge of Rydberg's constant and its calculation
  • Experience with mathematical modeling and fitting techniques
NEXT STEPS
  • Explore the documentation for Mathematica's NonLinearModelFit function
  • Learn about parameter initialization techniques in nonlinear fitting
  • Research the calculation of Rydberg's constant using spectroscopic methods
  • Investigate common pitfalls in Mathematica when performing nonlinear fits
USEFUL FOR

Students in physics or chemistry, researchers using Mathematica for data analysis, and anyone involved in mathematical modeling and fitting processes.

Shukie
Messages
91
Reaction score
0

Homework Statement


I am trying to find Rydberg's constant. I took measurements using a spectroscope and now I want to do a NonLinearModelFit on the following function:

[tex]\theta = \theta_0 + \alpha + \Arcsin{p k - \Sin{\alpha}}[/tex]

Where p is 1/(d*Rh). I know [tex]d[/tex] and so I can calculate [tex]R_H[/tex] if I know [tex]p[/tex]. Problem is, I can not get the fit method to work in mathematica, but I don't see what is wrong.

The Attempt at a Solution



View attachment 24028

Could anyone please take a look?
 
Last edited:
Physics news on Phys.org
Try giving p an initial value of 0.
 

Similar threads

  • · Replies 9 ·
Replies
9
Views
2K
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
1
Views
2K
  • · Replies 0 ·
Replies
0
Views
2K
  • · Replies 20 ·
Replies
20
Views
2K
Replies
15
Views
2K
Replies
5
Views
2K