Function jensenDifference