Eshell V6.3 (abort with ^G) 1> c("c:/cygwin64/home/leavens/classes/cop4020/lectures/erlang-distributed/hailstone", [{outdir, "c:/cygwin64/home/leavens/classes/cop4020/lectures/erlang-distributed/"}]). {ok,hailstone} 2> hailstone:trajectorTo1(2). ** exception error: undefined function hailstone:trajectorTo1/1 3> hailstone:trajectoryTo1(2). [2,1] 4> hailstone:trajectoryTo1(3). [3,5,8,4,2,1] 5> hailstone:trajectoryTo1(7). [7,11,17,26,13,20,10,5,8,4,2,1] 6> hailstone:trajectoryTo1(26). [26,13,20,10,5,8,4,2,1] 7> hailstone:trajectoryTo1(27). [27,41,62,31,47,71,107,161,242,121,182,91,137,206,103,155, 233,350,175,263,395,593,890,445,668,334,167,251,377|...] 8> ** exception error: undefined shell command hailstoneMax/1 9> hailstone:hailstoneMax(27). 4616 10> hailstone:hailstoneMax(703). 125252 11> peaks([{3,5},{4,4}]). ** exception error: undefined shell command peaks/1 12> hailstone:peaks([{3,5},{4,4}]). [{3,5}] 13> hailstone:graphMaxPeaksTo(100). [{1,1},{3,8},{7,26},{15,80},{27,4616}] 14> hailstone:graphMaxPeaksTo(10000). [{1,1}, {3,8}, {7,26}, {15,80}, {27,4616}, {255,6560}, {447,19682}, {639,20762}, {703,125252}, {1819,638468}, {4255,3405068}, {4591,4076810}, {9663,13557212}] 15> hailstone:graphMaxPeaksTo(100000). [{1,1}, {3,8}, {7,26}, {15,80}, {27,4616}, {255,6560}, {447,19682}, {639,20762}, {703,125252}, {1819,638468}, {4255,3405068}, {4591,4076810}, {9663,13557212}, {20895,25071632}, {26623,53179010}, {31911,60506432}, {60975,296639576}, {77671,785412368}] 16> hailstone:graphMaxPeaksTo(1000000). [{1,1}, {3,8}, {7,26}, {15,80}, {27,4616}, {255,6560}, {447,19682}, {639,20762}, {703,125252}, {1819,638468}, {4255,3405068}, {4591,4076810}, {9663,13557212}, {20895,25071632}, {26623,53179010}, {31911,60506432}, {60975,296639576}, {77671,785412368}, {113383,1241055674}, {138367,1399161680}, {159487,8601188876}, {270271,12324038948}, {665215,26241642656}, {704511,28495741760}] 17> hailstone:graphMaxPeaksTo(10000000). [{1,1}, {3,8}, {7,26}, {15,80}, {27,4616}, {255,6560}, {447,19682}, {639,20762}, {703,125252}, {1819,638468}, {4255,3405068}, {4591,4076810}, {9663,13557212}, {20895,25071632}, {26623,53179010}, {31911,60506432}, {60975,296639576}, {77671,785412368}, {113383,1241055674}, {138367,1399161680}, {159487,8601188876}, {270271,12324038948}, {665215,26241642656}, {704511,28495741760}, {1042431,45119577824}, {1212415,69823368404}, {1441407,75814787186}, {1875711,...}, {...}|...] 18> hailstone:graphStoppingPeaksTo(100000). [{1,0},{3,4},{7,7},{27,59},{703,81},{10087,105},{35655,135}] 19>