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!
What is the distance from point P(x,y) to the line Ax + By + C = 0?
Is the Point in a Triangle?
Getting the absolute index from a matrix
Remove from a 2-D matrix all the rows that contain at least one element less than or equal to 4
Optimal Asymmetric Encryption Padding decoding of message for RSA Cryptography
Determine RSA keys (public and private) given two prime number character strings (p and q)
RSA encryption using public key
String to Binary Representation
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