exitbm

exitbm: a library for simulating Brownian motion’s exit times and positions from simple domains. The exitbm library provides methods to simulate random variables related to the first exit time and position of the Brownian motion from simple domains, namely intervals, squares and rectangles. This library may be used in order to implements Monte Carlo methods such as the random walk on squares and on rectangles, which are variant to the random walk on spheres with the advantage of having explicitly and exactly the exit time. These algorithms allow one to solve the Dirichlet problem, but also other linear problems as well as computing the first eigenvalue of the Laplace operator or other quantities related to this operator.