Half life question in matlab
2 ビュー (過去 30 日間)
古いコメントを表示
Question: Metronidazole (used to treat infections) has a half life of H = 7.9 hours. Use solve to calculate [5 pt] the amount of time it takes for 50mg to decay to 20mg. Note that the decay constant is −ln(2)/H.
Code: solve(x*(-log(2))/(log(50/20)));
Getting the wrong answer, not sure how to solve it correctly.
1 件のコメント
Image Analyst
2015 年 2 月 2 日
編集済み: Image Analyst
2015 年 2 月 2 日
Didn't Star Strider and Roger already answer/help with this in http://www.mathworks.com/matlabcentral/answers/173236#answer_166376?
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Particle & Nuclear Physics についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!