結果 : differentiation of mod function