Thursday, October 8, 2009

LaTeX

LaTeX has been a godsend to me. I'm not talking about the material used in a lot of folderol that you might buy at Egor's Dungeon near Belmont & Clark. Get your mind out of the gutter! No, I'm talking about LaTeX (pronounced "lay-tek") - the programming language used for making fancy math script. From grade school through part of college, I had all my scholastic stuff divided into two categories: things I could type up on a word processor, and things I had to write down by hand. English and History homework could be typed up in Pagemaker or Works or Word, but I'd have to jot down Math and Physics homework by hand. It was no big deal, either, because I had a pretty light load and the scratch paper was totally necessary. While I was doing "astrophysics research" (I put that in quotes because I didn't get any real research done), I heard people talking about LaTeX to each other as they got their papers ready for potential publication. I didn't investigate any further for some time. Years later, I took a grad-level course on Real Analysis and found that I was doing so much writing by hand that I thought I would get a wrist injury. When you're writing up proofs, it's like you're doing 5-page essays with a bunch of math symbols. So, I tried to do my homework in Word, but it was a real pain in the ass trying in vain to make equations look right. It looked incredibly sloppy and incomplete. I relented and downloaded some software so I could learn and make up PDFs in LaTeX. It was phenomenal! The difference in my homework before and after was like night and day. It was simple, clean and sharp. The pages came out neatly organized, and I didn't suffer from writer's cramp. When I turned in assignments for that class, I may not have had all the answers right, but I know I had the best looking homework.

I'll show you what I'm talking about. One of the most famous equations in physics is Schrödinger's equation. It deals with the wave-particle duality of everything in nature. Too bad I got only a C in Quantum Mechanics, because otherwise I'd start lecturing.

LaTeX sample 3

To make this, all I needed to type was

[EQ]\imath\hbar\frac{\partial}{\partial t}\Phi (x, t) = \hat{H}\Phi (x, t) [/EQ]

into a LaTeX editor and it comes out all nice and pretty. Planck's constant has a bar in it, the fraction bar is right in the center and exactly the right length, the Greek and Roman letters are elegant - it's a typesetter's dream come true. Now, contrast that with my handwriting.



Wood isn't my usual medium for doing problems in quantum mechanics, but I wanted to start this blog on a classy note. It's just a mess. My delta's and phi's are shoddy, and Planck's constant looks like chicken scratch. You know what? I must be kidding myself. This is totally unintelligible. It's a wonder I made it through any math or science class.

LaTeX is ubiquitous. If you look at almost any paper written in a math or science journal, it was probably written in LaTeX. And now that I'm studying to take the GRE Math Subject test again, I'm going to use it for making study guides. I'm still a novice right now, but I'll probably become an expert by the time I'm writing my doctoral thesis.

10 comments:

  1. I was really excited to see on FB you started a blog.

    NICE ENTRY. I don't think I could've expanded on such a minute topic and keep someone engaged, but job well done.

    I'm trying to remember Planck's constant from physics...not happening...

    anyway, I now know how my professor from stats typed up our homework, LaTeX!

    I thought he just took a lot of time using microsoft words symbols hahahah

    Hope to hear more from your blog

    ReplyDelete
  2. So wait- this latex function you're describing is in addition to std prevention? I'm sold. I'm going to keep a close eye on this blog.

    chase w

    ReplyDelete
  3. if this is the anetka I'm thinking of...you should most def start blogging. you're an amazing writer so I wanna hear!

    ReplyDelete
  4. SO glad you finally started this! I knew it would be entertaining. also i love your title. it makes me laugh every time i read it cos it fits you so well. and for being such a big math guy-- i gotta give you props on your writing. pretty impressive. can't wait to read more!

    ReplyDelete
  5. summers, your kindness overwhelms me.

    ReplyDelete
  6. you make me sad in a way no one else can.
    thanks brew

    ReplyDelete
  7. Right now, my goal is to update this blog weekly. So, if I haven't provided any updates by October 16, start getting pissed.

    Summers - http://en.wikipedia.org/wiki/Planck's_constant. Also, Mos Def should start blogging, I agree.

    Annette - This blog isn't only about math, but math will come up often. I'll try to make it fun. On another note, I hope your blog helps you sort out things in your own mind.

    Chase - If you spend enough time typing things out in LaTeX, you're guaranteed not to have any encounters with women, so yeah, it prevents STDs. You're a grizzled old veteran in the blogosphere, so your approval means a lot to me.

    Renee - I thought I only made you laugh whenever I acted awkwardly. I'm going to write a post explaining the blog's title more thoroughly.

    ReplyDelete
  8. weekly updates are preferred.

    ReplyDelete
  9. "A simple pole in a complex plane". Great joke,
    I heard it first time 20 years ago at my University of Trondheim (NTH). Then a few weeks ago I got to meet a Polish electrical engineer (he was around 30 and works for ABB here in Bergen, Norway).

    This was at the day after day US and NATO started bombing Libya. We talked about the possibility that maybe Polish jet-planes would be involved. I then put the question to him (I foolishly assumed he was familiar with complex analysis etc.).

    "What do you call a polish guy in a F-16"?

    "A pilot?" he answered with a question-mark over his face.

    "Well you're right, I was more thinking of a simple pole in a complex plane".

    I had to explain the joke to him. What do kids learn at university today?

    ReplyDelete
  10. How did my post end up in this section? Will the blog-owner please move it to the right place ("Explaining a joke")?

    ReplyDelete