A numerically exact nonreflecting boundary condition applied to the acoustic Helmholtz equation