Of course, you may start on the homework during class if you have time!
Take a look at Exercise 12 on page 46 of Chapter 3 of the CalcLabs with Maple V manual:
A cylindrical can with a top and bottom is to contain 1000 cubic centimeters. Find the dimensions of the can if its surface area is 600 square centimeters. Note: there are two answers.
Consider the following alleged Maple solution to the problem.
Let r and h denote the radius and the height of the cylinder. We set up a pair of simultaneous equations and solve them for r and h. > eq1:=Pi*r^2*h=1000; eq2:=2*Pi*r^2+2*Pi*r*h=600; fsolve({eq1,eq2},{r,h}); eq1 := Pi*r^2*h = 1000 eq2 := 2*Pi*r^2+2*Pi*r*h = 600 {r = -11.13867027, h = 2.565567417}
Obviously something is wrong here, because it does not make sense for the radius to be negative!
Write a Maple session, addressed to an audience of first-year calculus students, that explains the error and exhibits a correct solution. Turn in hard copy at the next class.
A requirement of this assignment is that your paper include a Maple plot. (That's also a hint: look at a suitable graph to see what is going on.) To get a plot into a Maple worksheet, select "Edit" and "Copy" from the plot window, move the cursor back into the main Maple window, and select "Edit" and "Paste".
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: Harold P. Boas E-mail: boas@tamu.edu World-Wide Web URL: /~Harold.Boas/ :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Generally, a signature file should contain your name and some contact information. Some people include little ASCII pictures or witty sayings. It is recommended that your signature file not exceed four lines. (If you send mail from within Netscape, it will complain if your signature file exceeds four lines, even if some of the lines are blank.)
Save your signature file as .signature
(that file name starts with
a period.) Then open a terminal window and use the command
chmod a+r .signature to make the file world
readable. Now try sending yourself mail to see if the
signature does get included in your mail message.
I would like to share with all of you some of the ideas, problems, and errors that I encountered in reading your homework papers.
I enjoyed reading your papers on the subject "Why study mathematics?" All of them met or exceeded expectations.
I read your papers first of all for content, to see what interesting ideas you had. Here are some of the common themes mentioned.
Secondarily I looked for good style and organization. I would like to reinforce two points about communicating ideas on paper. (Three of my four grandparents were English teachers, so good writing is appreciated in my family.)
Technical research papers often do not follow this model, but they probably should. I always start off a research paper with an introductory section that summarizes the results. I like to close a research paper with a section on open problems and directions for future investigations.
Here are two books I recommend on style.
When I read your papers, I marked errors in grammar, spelling, punctuation, and so forth. Many of you are not native speakers of the English language, and I expected you to make some mistakes. Your grade will not suffer if your English is imperfect, but I assume that you are interested in improving your English, so I will continue to correct language errors on your papers.
I always feel embarrassed that I cannot communicate with my German in-laws in their mother tongue. I hope that those of you who are foreign-born will not feel embarrassed about your English. After all, in being able to speak more than one language you are more capable than many of your fellow students. In this connection, here are two points to keep in mind.
Those of you who are native speakers of English---watch out! I have a talent for proofreading.
Finally, I marked errors stemming from improper LaTeX mark-up. Since this was your first LaTeX paper, I expected you to make some mistakes in mark-up. If your code was perfect, you exceeded my expectations. Here is a list of some LaTeX idiosyncrasies that you should know about.
"
key to make quotation marks in LaTeX.
Instead, make ``smart quotes'' by doubling the `
key for
opening quotes and doubling the '
key for closing quotes.
(Of course, if you are typing in some language other than
English, then quotation marks may have a different
style---but then you probably should be using LaTeX's
babel
package that supports multiple languages.)
'
and ''
.
\'e
produces é and \`a
produces à while \"o
produces ö.
Washington Univ.\ is in St.\ Louis.
(Don't go
overboard with this. It is not good style to use a lot of abbrevs.)
\pm
control sequence.
\left(
and
\right)
. For example:
\begin{equation} \left(x+\frac1x\right)^2=x^2+2+\frac{1}{x^2} \end{equation}
{
and }
for grouping when appropriate.
\documentclass[12pt]{article} \usepackage{amsmath} \begin{document} \begin{equation} \sqrt2x \text{ is not the same as } \sqrt{2x} \end{equation} \end{document}
D
operator.
Try converting to Maple expressions and using
diff
instead. For example, in exercise 5 on
page 43 of the CalcLabs with Maple V manual,
> f:=x->x^3+3*x+7; g:=x->tan(x^2+1); 3 f := x -> x + 3 x + 7 2 g := x -> tan(x + 1)
you get a strange result if you ask Maple for D(f*g); (although D(f*g)(x); is fine). What looks better is diff(f(x)*g(x),x); or unapply(diff(f(x)*g(x),x),x);
> a:=5; b:=7; f:=x->a*x+b; a := 5 b := 7 f := x -> a x + b
Why didn't Maple respond f := x -> 5x + 7
instead?
This is another situation in which Maple
behaves better with expressions than with functions. To
get the expected result (as an arrow-defined function), you have to say
f:=unapply(a*x+b,x);
Your first project for the semester is to build a World-Wide Web home page and to help someone else build one. The page is supposed to contain at least one link and one image.
Today we are going to get started by building a simple home page. During the semester, you will add links and images and further information to the page, but today the goal is just to get a page that works.
World-Wide Web pages are written in Hyper Text Mark-up Language (HTML). This language is similar to LaTeX in spirit. You prescribe the logical design of the page, but not the visual design. Thus, you are allowed to say, "This is a level-three heading," but you are not allowed to say, "This is centered text in a fourteen point bold sans serif font."
In HTML, most of the mark-up instructions come in grouped pairs, like LaTeX's \begin{math} ... \end{math} structure. A typical example of an HTML "tag" is <EM>this is emphasized text</EM> (emphasized text is typically displayed in italics, but the font choice is left up to the individual Web browser). Notice that the start tag is surrounded by angle brackets, and the end tag looks just the same except that it also has a slash. It does not matter whether the tags are upper case or lower case.
Here is a template for a very basic Web page. Use the mouse to cut this template and paste it into a text editor. Then modify the information to apply to yourself. Notice that blank lines do not start new paragraphs, so you can use blank lines to make your input file more readable. (You must use an explicit <P> tag to start a new paragraph.)
<html>
<head>
<title>A sample home page</title>
</head>
<body>
<h1>My home page</h1>
<P> Here is some information about me. Notice that the paragraph tag P does not need a matching end tag.
<h2>This is a level two header</h2>
<OL>
<LI>This is the first item of an ordered list.
<LI>The list item tag LI is another one that has an optional
end tag.</LI>
</OL>
<h3>Information about me</h3>
<ul>
<li>My e-mail address
<li>My telephone number
<li>And so on; this is an unordered list.
</ul>
</body>
</html>
Here is what will display on the screen:
Here is some information about me. Notice that the paragraph tag P does not need a matching end tag.
After you edit the HTML template, you need to save it as a
file and be sure that Web browsers can find it. Each computer
system has a special location where it expects to find publicly
accessible HTML files. On the calclab machines and the main
mathematics server, the location for HTML files is a subdirectory
named public_html
in your home directory; this
subdirectory has probably already been created for you with the
correct access permissions by the system administrator. (On
tam2000, the subdirectory is named .public_html
with
an initial period; you will have to create it yourself and make it
world-readable and world-executable.)
Save your basic home page in this special subdirectory with
the name index.html (this is a standard name for home
pages). Use the "Save As" feature on your text editor: you can
probably navigate to the subdirectory public_html
with a mouse click, and then type in the name index.html.
There is one more step: you need to change the access permissions
on index.html
to make it a world-readable file. Open
a terminal window, execute the command cd public_html
(on tam2000, cd .public_html)
and then the command chmod a+r index.html.
Now test it out. Open a Web browser (Mosaic or Netscape), click on the "Open" button, and type in http://calclab.math.tamu.edu/~your_user_id/ (if your home page is on the calclab machines) or /~your_user_id/ (if your home page is on the main mathematics server) or http://http.tamu.edu:8000/~your_user_id/ (if your home page is on tam2000). Your home page should display in the browser. Now have your neighbor try to display your home page (this is an extra check to confirm that the file permissions are correct).
When you have time to go further, you can look at some information for building home pages from the Web Beginner's Corner at Texas A&M University, and you can investigate some of the html resources on our class list of resource materials. Other tips:
This exercise was originally planned as homework last week, but since we ran out of time, it is now part of today's classwork.
Recall that in the Maple assignment from last class, you determined a certain third degree polynomial p. A little experimentation with Maple will convince you that p(n) is always an integer when n is an integer. Find a proof of this fact, write in LaTeX an explanation suitable for high school students, and turn in hard copy by the end of class.
Remark. You can write the polynomial as a fraction whose numerator is a polynomial q(n) with integral coefficients, and whose denominator is 6. Hence what you need to show is that the numerator is divisible by both 2 and 3 (and hence 6) when n is an integer. If you were writing a solution for a graduate class, you might (for example) invoke Fermat's little theorem, which says that a^p is congruent to a modulo p when a is an integer and p is a prime. For a high-school audience, however, you need to give a more elementary, bare-hands presentation.
If you have done all the above activities, and there is still time left, here are some other activities you can do.