numerics for resonant decay rate