2
$\begingroup$

I have been trying for over an hour now to get the numeric value for "HalfLifeN" from the code in the screenshot below. Not to mention mathematica simplifies $e^{ln(x)}$ to $ 2^x$, which I don't want it to do.

I can work through this by hand, but I would really prefer not to. Is there any way I can access the values of "HalfLifeN" even though they are internal to the nlmf function?

Thank you.

enter image description here

My temporary workaround was to use a different variable not dependent of Log2, and then copy and past it to solve for the half life. enter image description here

$\endgroup$
1
  • 4
    $\begingroup$ Please provide code instead of screenshots. This will make dealing with your input much easier. $\endgroup$
    – Jinxed
    Commented Apr 23, 2015 at 8:38

1 Answer 1

8
$\begingroup$
Flatten[#["BestFitParameters"][[All, 2]] & /@ {data1Fit, data2Fit, data3Fit}]

or

{HalfLife1, HalfLife2, HalfLife3 } /.
   Flatten[ #["BestFitParameters"] &/@ {data1Fit, data2Fit, data3Fit}]
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.