-
Notifications
You must be signed in to change notification settings - Fork 0
/
Collatz.html
38 lines (36 loc) · 2.5 KB
/
Collatz.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module Collatz</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head><body bgcolor="#f0f0f8">
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong>Collatz</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/v/filer4b/v41q001/downing/public_html/cs373/github/collatz/Collatz.py">/v/filer4b/v41q001/downing/public_html/cs373/github/collatz/Collatz.py</a></font></td></tr></table>
<p><tt># ---------------------------<br>
# projects/collatz/Collatz.py<br>
# Copyright (C) 2015<br>
# Glenn P. Downing<br>
# ---------------------------</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#eeaa77">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
<td width="100%"><dl><dt><a name="-collatz_eval"><strong>collatz_eval</strong></a>(i, j)</dt><dd><tt>i the beginning of the range, inclusive<br>
j the end of the range, inclusive<br>
return the max cycle length of the range [i, j]</tt></dd></dl>
<dl><dt><a name="-collatz_print"><strong>collatz_print</strong></a>(w, i, j, v)</dt><dd><tt>print three ints<br>
w a writer<br>
i the beginning of the range, inclusive<br>
j the end of the range, inclusive<br>
v the max cycle length</tt></dd></dl>
<dl><dt><a name="-collatz_read"><strong>collatz_read</strong></a>(s)</dt><dd><tt>read two ints<br>
s a string<br>
return a list of two ints, representing the beginning and end of a range, [i, j]</tt></dd></dl>
<dl><dt><a name="-collatz_solve"><strong>collatz_solve</strong></a>(r, w)</dt><dd><tt>r a reader<br>
w a writer</tt></dd></dl>
</td></tr></table>
</body></html>