fixed point calculation