Half life question in matlab

조회 수: 2 (최근 30일)
Bob
Bob 2015년 2월 2일
편집: Image Analyst 2015년 2월 2일
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
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 CenterFile Exchange에서 Particle & Nuclear Physics에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by