Semi-analytical approach to simulations where dense liquidity is a small perturbation to constant-product invariant