Radioactive Einsteinium-253 has a half-life of 1,768,608 seconds. Given 1000mg of Einsteinium-253 at t=0 days, how much is left after 50 days?
EX: >> decay(50)
184
HINT: find k, then decay(50)
Use: decay(t)=10^3*e^(k*t)
NB: make sure you round your answer up to the next highest integer.
guess you mean minutes instead of seconds?
Hi, no I do mean seconds if you are referring to the constant, 29,476.8
I have readjusted it now so it is the correct value.
I believe you are always rounding up to the next highest integer rather than rounding to the nearest integer. In other words, you are using the ceil() function, not the round() function.
Hi Rick, yes you are quite right. I have made the correction as above. Thanks for your valuable input.
I believe your second test case is incorrectly rounding.
Yes, you were right with my earlier incorrect "note well" remark but now with corrected remark in place this test is valid. Sorry if it has put you off a bit. I guess other issues may come to light as well but I hope not.
Make the vector [1 2 3 4 5 6 7 8 9 10]
30006 Solvers
Find common elements in matrix rows
832 Solvers
137 Solvers
Calculate the area of a triangle between three points
295 Solvers
Celsius to Fahrenheit converter
284 Solvers