Computation of the real logarithm for a discrete-time nonlinear system