結果 : function of a right triangle