I am trying to implement an algorithm in R that involves solving for the boundary limit of the integral. For example, I want to find a given the following integral:
integral_0^a exp(x) = 1/2
I have a rough idea how to do it in matlab. But how would one go about solving this in R?
Thanks for your suggestions.
You can use
integrateto compute the integral (numerically)and
unirootto solve the equation (numerically).