結果 : total variation of a function