Created
June 22, 2017 01:22
-
-
Save mkumm/f4ca7d4893ae60607ece98f6a83b1121 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-module(second). | |
-export([hyp/2, perimeter/2, area/2]). | |
-import(first, [square/2,mult/2]). | |
% Just to show I know what a comment is ;) | |
hyp(A,B) -> | |
math:sqrt(first:square(A) + first:square(B)). | |
perimeter(A,B) -> | |
A + B + hyp(A,B). | |
area(A,B) -> | |
first:mult(A,B) / 2. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment