Mat331 class worksheets, spring 2008
Below are listed the worksheets that were saved from each class meeting, which you can browse online or download.
Alternatively, you can open the worksheets from inside Maple by selecting Open URL... from the File menu, and entering a URL like function selfURL() { $s = empty($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on") ? "s" : ""; $protocol = strleft(strtolower($_SERVER["SERVER_PROTOCOL"]), "/").$s; $port = ($_SERVER["SERVER_PORT"] == "80") ? "" : (":".$_SERVER["SERVER_PORT"]); return $protocol."://".$_SERVER['SERVER_NAME'].$port.$_SERVER['REQUEST_URI']; } function strleft($s1, $s2) { return substr($s1, 0, strpos($s1, $s2)); } $url=str_replace("index.php", "", selfURL())."DATE.mw"; echo "$url"; ?> , where you replace DATE with the date of the class you want.
function getFileList($dir) { $retval = array(); // # add trailing slash if missing if(substr($dir, -1) != "/") $dir .= "/"; # open pointer to directory and read list of files $d = @dir($dir) or die("getFileList: Failed opening directory $dir for reading"); while(false !== ($entry = $d->read())) { if($entry[0] == ".") continue; // skip hidden files $pieces = explode(".", $entry, 2); if(is_dir("$dir$entry")) { $retval[] = array( "fullname" => "$dir$entry/", "name" => "$entry", "size" => 0, "base" => "$entry", "suffix" => "/", "lastmod" => filemtime("$dir$entry") ); } elseif(is_readable("$dir$entry")) { $retval[] = array( "fullname" => "$dir$entry", "name" => "$entry", "size" => filesize("$dir$entry"), "base" => $pieces[0], "suffix" => $pieces[1], "lastmod" => filemtime("$dir$entry") ); } } $d->close(); return $retval; } function compare_byname($a, $b) { return strnatcmp($a['name'], $b['name']); } $dirlist = getFileList("."); usort($dirlist, 'compare_byname'); echo '| '; echo "{$file['base']} | \n"; echo ''; if (is_readable($file['base'] . ".html")) { echo 'browse (html)'; } else { echo ' '; } echo " | \n"; echo "\n"; // echo ' | download""; echo ' | '; echo '"; echo " | \n"; // echo "as of " . date("r", $file['lastmod']). " | \n"; echo "