All my answer agree with your to many decimal places except problems 4 and 5, which are different by 1e-5 or 1e-6. I can't tell whether it is p or t that is different.
Thanks, but it didn't help. My results for 4 and 5 (and *only* for 4 and 5) are different by a *relative* error of 1e-5 and you put in an *absolute* tolerance of 1e-7. That is something like a relative error of nearly 1e-11. I don't think we're going to make it unless we figure out why the target values in those two cases are so far out of line with the others.
I used the following constants:
I see. I have checked on the web and there seems to be a wide disagreement on the conversion factor between amu and kg. After the first 4 digits, all bets are off. Using your value of Av makes the cases 4,5 work though. Thanks!
Given an unsigned integer x, find the largest y by rearranging the bits in x
Recurring Cycle Length (Inspired by Project Euler Problem 26)
vectorization in N
Create a random logical vector of N elements of which M are true.
Create a matrix with difference of each row of input matrix
Optimal Asymmetric Encryption Padding of message for RSA Cryptography
Mask Generation Function (MGF1) for PKCS #1 Standard utilizing Optimal Asymmetric Encryption Padding for RSA Cryptography
Nuclear Binding Energy
AES MixColumns() Transformation
Determine the kth Primitive Root of Unity
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