Archive for February, 2008

Holiday Pizzas

This past weekend, I got to go home and see Leslie! And as we normally do on weekends, we made pizza. However, when a holiday rolls around, how we decorate the pizzas becomes extremely important. For a given holiday, we decorate the pizza around that holiday. We’ve done one for Thanksgiving, Christmas, and Valentine’s Day. Leslie usually lays it out, and I usually cut the unusual shapes out of pepperoni. It’s good team-work, and they typically turn out wonderfully. Here are some pictures of the holiday pizzas we’ve done so far:

Thanksgiving
Thanksgiving pizza

Christmas
Christmas pizza

Valentine’s Day
Valentine's Day pizza

Chipping away at Physics: 4-2-1-2-1

This week was a great week in terms of chipping away at the Physics countdown. I had an exam on Monday, lectures on Tuesday and Thursday, lab on Wednesday, discussion on Thursday, and finished a homework on Wednesday. With just 2 weeks left to go, we are making good progress to 0-0-0-0-0.

4-2-1-2-1

Lots of things to be thankful for

I know that it is Valentine’s Day and not Thanksgiving, but this morning I having one of those moments of realizing how much I get to be thankful for.

Physics Department Inefficiencies

I had a physics test last night in one of the larger of the lecture halls on campus. I think it holds like 700, but there was maybe 350 people there taking the test. Each person needs to sign in (to make sure you are really who you are), and this happens when the TA’s decide. So our course, our physics department thinks the best time to do this is at the very beginning, so there is a mad rush to sign-in, and lines of 175 people on either side of the lecture hall. Maybe it’s just me, but wouldn’t it be more efficient to have everyone sign-in at the end, as no one really seems to finish at exactly the same moment?

The lines in the lecture hall.

Physics Countdown: 6-3-2-3-2

I really don’t like Physics. My second semester here I took Classical Mechanics, which wasn’t horrible. This past fall I tool Electricity and Magnetism, which is when I really started to not like it. And now this semester I am taking Quantum Physics, and I loathe it. It seems so useless! Maybe it’s just me having a hard time seeing the application, or maybe it’s truly because there is no application of quantum mechanics to computer science.

Regardless, I am beginning the countdown to when the homeworks, lectures, labs, discussion sections, and exams will all be done for Physics 214. Lucky enough, it’s not a semester class as with the other physics courses, so I only have 3 weeks left!

6-3-2-3-2

Illinois Weather

In California, you have warm weather offset by earthquakes and mud slides. Florida also has nice beaches with sun and warm weather, but again, offset by hurricanes. Boston has beautiful falls, but torrential amounts of snow and rain. Seattle has beautiful mountains and forests, but then don’t see blue sky a ton. It seems that every place in the country has some wonderful natural feature offset by something that could kill you.

Except Illinois, we only have stuff that will kill us: bitter cold, humid and scorching summers, not to mention high winds and tornadoes. The last week of weather here in Urbana Champaign has certainly been full of most of those, save the scorching heat. One day it was a -26 wind chill, the next day was a tornado warning, it rained torrentially for a day, and then today I awoke to a -15 windchill. I think that most weathermen in Chicago probably don’t very much fun trying to predict the weather.

OK, I don’t give Illinois enough credit. Yesterday I went to dinner off campus, and as we were driving along the cornfields, I must say the sunset I saw was quite beautiful. And contrary to popular belief, Illinois does have some beautiful places. Check out state parks such as Matthiessen State Park or Illinois Beach State Park. You won’t believe that you are in Illinois.

Do any others of you wonder why you live where you are?

Hot and Cold

What makes some people be conducive to heat, and others to cold? And how do those on completely different poles get along?

I voted.

For the first time in my life, I voted. It was really cool. And it wasn’t that I just voted just to vote. I did my research, evaluated the issues that were important to me, watched the debates, talked to others, kept my mind open, and then today I walked through the pouring rain to bubble in a candidate I think will make the best President of the United States. It wasn’t about parties or stereotypes, it was about who would be able to lead our country the best. And I must say, I am glad I live in a country that allows me to make a difference.

How about you all?

Image courtesy of http://www.generationengage.org/state/graphics/vote_button.jpg

Two sets of Chicago pictures up

Two new sets of Chicago pictures are posted on the Photos page. They include trips to the Shedd Aquarium and to Pizzero Uno, both with dear Leslie.

The Shedd

TeX: Making math more enjoyable

How many of you have ever looked at a Math test and wondered, “how did they type this up with all of the funky symbols and stuff. This must have taken hours to make!” Well, maybe only I do. But, I found out how they do do those Math tests, and it’s called TeX.

TeX is a basically a simple little markup-type language that allows you to do really powerful typesetting easily. It involves typing in some code, then using a utility to turn that code into a PDF, DVI, or PostScript file. The TeX code, also known as LaTeX code, is actually quite simple. Let’s take a look at an some examples.

To create a really simple article that has a title, an author, and a date, here is all the code that is necessary:

\documentclass[11pt]{article}

\begin{document}

\title{My Article}
\author{Kevin Cathey}
\date{Today}
\maketitle

\end{document}

However, we may want to have more control on our document, like adding margins, so we need to tell TeX that we want more control. We do this by bringing in more commands into the language that TeX has. These extensions are called packages. Anyone can write a package, and TeX has quite a rich environment of them. So to do page margins or other geometric functions, we are going to bring in the package called geometry:

\usepackage[left=0.75in,top=0.75in,right=0.75in,nohead,nofoot]{geometry}

But let’s get to the good stuff. You can do quite a variety of cool mathematical and scientific things in TeX with only one command.

Symbols:
Inserting those crazy symbols is easy with TeX, just write out the name of the symbol and put a “\” before it. The following code will print out quite a different taste of symbols:

We can do all kinds of symbols, like: $\delta, \varepsilon, \Sigma, \gamma, \Gamma, \rho_0, \mu^x$.

Assortment of symbols.

With this code, you should notice a few things. First of all, symbols appear between two “$”. This is TeX’s way of saying, “this is an equation”, and then it formats it with the italics and everything, for free! Also, notice that uppercase symbols start with an uppercase letter for the name, and lowercase symbols have lowercase first letters. And finally, if you put an underscore “_” after a symbol, it makes the next character subscript, and if you use a carrot “^”, it makes it superscript. It’s that easy.

Mathematical expressions:
You can also do all kinds of really nifty mathematic expressions like fractions, integrals, etc. For example, let’s say I want to take the integral of some fraction with powers and subscripts and greek letters. I would never be able to do that easily in a word processor, but TeX makes it easy:

$\displaystyle\frac{1}{4\pi}\oint_\Sigma\frac{1}{r}\frac{\partial U}{\partial n} (\frac{\delta_{\kappa^i}}{\varepsilon}) ds$

Crazy integral equation made easy with TeX.

How about trying to do Schrodinger’s equation in a word processor? Forget it! It TeX, no problem:

- \frac{{\hbar ^2 }}{{2m}}\frac{{\partial ^2 \psi (x,t)}}{{\partial x^2 }} + U(x)\psi (x,t) = i\hbar \frac{{\partial \psi (x,t)}}{{\partial t}}

Schrodinger's one-dimensional time-independent equation

Conclusion:
I’m just touching the tip of the iceberg here. Basically, TeX acts as a great tool for generating any documents that are going to need advanced typesetting for mathematics or science. If you are a student typing up their homework, or a teacher generating a math test, this technology is a great option. TeX has a great community that has put out modules to do almost anything. To make things easy for me when I write TeX, I use a program on the Mac called TeXShop. I recommend downloading it and at least playing with it. I think you will find it quite fun to play with. For someone who doesn’t like math, it makes it just slightly more enjoyable.

Additional resources:
Mathematical typesetting in TeX.
EquationSheet: pretty much any equation you can think of in TeX code.
Mathematical symbol reference.