Using LaTeX in wordpress

I am a huge fan of \LaTeX, which is a document preparation system. While it does have a steep learning curve, it has a number of advantages over word processors, one of which is typesetting of mathematical symbols. And now this feature is also available for blog people such as myself, thanks to a delightful plugin called ‘WP QuickLaTeX’.

I would like to illustrate its use by demonstrating the solution to a puzzle I encountered recently. The puzzle is stated as follows:

 “Four years ago, Jane was twice as old as Sam. Four years on from now, Sam will be 3/4 of Jane’s age. How old is Jane now?”

The key to its solution is to recognize that it’s a linear algebraic problem involving a set of simple linear equations. Let Jane’s age be equal to x and let Sam’s age be equal to y. Now the sentence can be rephrased as follows:

“Four years ago, x = 2y. Four years from now on, y = \tfrac{3}{4}x. What is the value of x now?”

Now we are getting somewhere. But these equations are still incomplete, because they do not yet take into account that the statements are only true four years in the past or four years into the future. So let’s travel in time by adding or subtracting 4 from x and y in the equations.

(1)   \begin{align*} x-4 &= 2(y-4) \\ \tfrac{3}{4}(y+4) &= x + 4 \end{align*}

That’s better. We are almost there now. But first the equations must be put into standard form, i.e. ax + by = c. Like this:

(2)   \begin{align*} x - 2y &= -4 \\ \tfrac{3}{4}x - y &= 1 \end{align*}

Now finding the solution by elimination of variables is the most straightforward way to proceed, although the row reduction method would also work just as wel. We simply multiply one of the equations by some scalar such that the variable we are not interested in (y) cancels out and we are left with an equation with only the unknown variable for which we want to find a solution (x). You could for example multiply \tfrac{3}{4}x - y = 1 by -2 to obtain the form -1\tfrac{1}{2}x + 2y = -2. And now we can eliminate the y variable, like so:

(3)   \begin{alignat*}{5} x  &&- 2y &&= -4 && &&\\ -1\tfrac{1}{2}x &&+ 2y &&= -2 && && \\ \cline{0-4} -\tfrac{1}{2}x  && &&= -6 && && && \end{alignat*}

 

Finally, we are left with an equation that is trivial to solve: x = \dfrac{-6}{-\frac{1}{2}}, thus x = 12 and we are left with the conclusion that Jane must be twelve years old.

I don’t know if I will use this \LaTeX plugin more often, but it’s nice to know it’s there should I need it ;).

An opinion of the film ‘Seeking a friend for the end of the world’

It is my observation that most of the movies that have come out in recent years tend to be classifiable in one of the following two categories. On the one hand there are movies that rely entirely on computer-generated special effects to captivate their audiences, whilst on the other hand there are movies that don’t use CGI effects at all and instead rely on a decent performance from the actors who play in it. It is unfortunately rare to find a movie in which good acting is combined with spectacular CGI effects. And perhaps it is just as rare to find a movie in which both convincing CGI and good acting are entirely absent, which I think is just as well.

But if for some reason you happen to be looking for an example of this latter sort, then ‘Seeking a friend for the end of the world’ will certainly not disappoint! For this movie contains neither the grand computer-generated special effects you might expect from a movie based around the imminent extinction of mankind by the pending collision of an asteroid with earth, nor any of the good acting that usually compensates a more limited production budget

This is a thoroughly boring movie. Unsurprisingly, the trailer for the movie turned out to already have all the funny parts in it, so I would suggest saving yourself a lot of time by watching that instead.

P.S.
I really enjoyed the outdoor theater in Greece where I watched this movie, you can find its location on the map below ;).

[google-map-v3 width=”350″ height=”350″ zoom=”16″ maptype=”roadmap” mapalign=”center” directionhint=”false” language=”default” poweredby=”false” maptypecontrol=”true” pancontrol=”true” zoomcontrol=”true” scalecontrol=”true” streetviewcontrol=”true” scrollwheelcontrol=”false” draggable=”true” tiltfourtyfive=”false” addmarkermashupbubble=”false” addmarkermashupbubble=”false” addmarkerlist=”38.022385,23.785302{}movierental.png{}Cine Filothei (Cine Φιλοθέη)” bubbleautopan=”true” showbike=”false” showtraffic=”false” showpanoramio=”false”]

Best public toilet near the Acropolis in Athens

If there is one thing I cannot stand, it´s a filthy toilet, in a foul smelling lavatory, with empty soap dispensers. But when I am away from home, and the urge arises to evacuate my faeces, there is often little recourse but to visit a public establishment of some kind, order a coffee and visit their ´facilities´. But if it´s not clean, I can´t go. No way in hell.

Now I am certain that I am not alone in this matter and so I am going to be posting regularly about the number one places for doing your number two. This will be my humble contribution for the benefit of mankind, I urge you to use the information I provide responsibly.

One morning I found myself in serious and urgent need of a clean water closet, whilst on my way to the Acropolis, which I had intended to visit from the first day I arrived in Athens. It was a morning, around 7.45 AM. I was in the embassy neighbourhood, close to the Acropolis museum, and there were some little coffee bars in the area. Avoid these! The first clean looking one I entered had toilet seats that were yellow from urine stains. So I walked on…

As my despair grew, I said out loud ‘I wouldn’t mind paying the entrance fee at the Acropolis museum, if that gets me near a clean toilet.’ And then I thought, why not? So I just decided to wait untill 8 o’clock, when the museum opens, to go there for ‘the movement’. As it turned eight and the museum security opened the gates, I hastened towards the entrance. After entering the museum, I noticed a public toilet in the distance on the left. Realizing I wouldn’t have to buy a ticket to get there, my heart leaped with joy! Owing to the urgency of my condition, the manner in which I made my way to the facilities must have looked like I was taking part in a racewalking event. But I digress.

The toilet had just been cleaned. Flushing is automatic. After flushing, the pleasant aroma of flowers and forest (emanating from an automatic air freshener) greeted my nostrils. The soap dispensers were not empty. The whole lavatory was modern and clean. This is a very acceptable public toilet.

Oh, and the museum it’s attached to is also rather nice 😉