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!
Make a checkerboard matrix
Project Euler: Problem 10, Sum of Primes
Find best domino orientation
Diophantine Equations (Inspired by Project Euler, problem 66)
RSA encryption using public key
Elliptic Curve Cryptography (ECC) Point Addition
Binary Array to Hex Representation
Output the Montgomery Form of the Input Matrix
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