Nice with a problem that is not purely mathematical!
Using the parameters for Least Squares Fit(1) from Wikipedia, I get values that differ from yours by up to 2 MeV (except for Li-7, where I get 38, while you get 34). Do you use a different parameter set, or have I made a mistake?
I apologize, I messed up the polarity. Should be fixed now.
Thanks. I now pass every test except 6:
1596 1628 1632 1750
1595 1628 1633 1749
I assume you are rounding at the end. Before rounding
[1595.950245381877 1628.458256218912 1632.283183807810 1750.279872731407]
I checked that my Z and N are correct, coefficients are correct, last term is correct. All answers should be correct.
I get the answers in the test suite.
My fault. Somehow I was still testing against the old test values. Sorry for the inconvenience.
Bottles of beer
Replace all zeros and NaNs in a matrix with the string 'error'
I've got the power! (Inspired by Project Euler problem 29)
(Linear) Recurrence Equations - Generalised Fibonacci-like sequences
Create State Array for initiating SHA-3-224 Hash
String to Binary Representation
Optimal Asymmetric Encryption Padding decoding of message for RSA Cryptography
AES SubBytes() Transformation
Montgomery Reduction Algorithm (REDC)
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office