結果 : latex algorithm multiple functions