Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 2
    $\begingroup$ For the version with NIntegrate, it's probably a good idea to put ?NumericQ on a_ and b_, too. Then Quiet can be dropped, and the user would still see any important errors and warnings (e.g. convergence problems for different data and/or model). $\endgroup$ Commented Dec 9, 2014 at 18:50
  • $\begingroup$ @MichaelE2 You are right, I was feeling lazy and I didn't try to improve it, thank you. $\endgroup$ Commented Dec 9, 2014 at 19:14
  • $\begingroup$ Yeah, I sometimes feel the same way. :) $\endgroup$ Commented Dec 9, 2014 at 19:30
  • $\begingroup$ Thank you very much to both Öskå for showing me how to modify my code and to Michael E2 for explaining where I went wrong and why Öskå's code works while mine didn't. $\endgroup$ Commented Dec 10, 2014 at 2:15