結果 : heat and work is path function or state function