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(assignment). | |
-export([perimeter/1,area/1,bits/1,tests/0]). | |
%Perimeter functions for circle,rectangle, square | |
perimeter({circle, {_X,_Y}, R}) -> | |
2*math:pi()*R; | |
perimeter({rectangle,H,W}) -> | |
2*H + 2*W; | |
perimeter({square,L}) -> | |
math:pow(L,2); |
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
16:01:50.795 [info] Application elixir_ls_utils exited: :stopped | |
[Info - 4:01:50 PM] Connection to server got closed. Server will restart. | |
Started ElixirLS Fork v0.3.2 | |
16:01:50.796 [info] Application erl2ex exited: :stopped | |
16:01:50.796 [info] Application forms exited: :stopped | |
Elixir version: "1.10.2 (compiled with Erlang/OTP 21)" | |
Erlang version: "22" |