Message Boards Message Boards

0
|
2626 Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Curve Fitting Data

Posted 10 years ago
POSTED BY: chris jackson
2 Replies

Here is your data:

wavelengths = 
 Import["http://web.lemoyne.edu/giunta/balmer.html", "Data"][[1,2 ;; 5]][[All, 2]]

giving

{6562.1, 4860.74, 4340.1, 4101.2}

You say this corresponds to m from 3 to 6.

So let's fit it to your expression with h as the unknown:

FindFit[Transpose[{Range[3, 6], wavelengths}],  h m^2/(m^2 - 4), h, m] 

Giving:

 {h -> 3645.6}
POSTED BY: David Reiss
Posted 10 years ago

Thanks for the reply, after fighting with the program for a while I got it to do what I wanted.

I came to the same value of h, so that's promising :)

Again, thanks for taking the time to answer a pretty basic question.

POSTED BY: chris jackson
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract