CPSC 418 hw1 Erlang
-module(hw1). % template code for CPSC 521 hw1. -export([sum/1, sum_i/0, sum_hr/1, sum_tr/1, sum_iii/1, % functions for Question 1 sq/1, sq_i/0, sq_ii/1, sq_iii/1]). -export([gcd/2]). % function for Question 2 -export([p/1, p/2, pi/1, pi/2]). % functions for Question 3. -export([gen_fold/3, gen_test/1]). % functions for Question 4. % -export([…]). % When writing your implementation, you will almost % …