Thursday, December 6, 2007

$ \LaTeX $ for fun and...well, fun.

To put in math, put it between $ signs, or use \[...\], \(...\), or $$...$$.

Say you've had an infinite number of cups of tea (close enough), each six hours after the previous one and the last one just now. Each has about 50 mg of caffeine. The half-life of caffeine is about six hours, so the number of milligrams of caffeine in your bloodstream is now:

$$ 50 \textrm{mg} \sum_{n=0}^{\infty}
\frac{1}{2^n} = 100 \textrm{mg} $$

Of course, in reality caffeine enters the bloodstream gradually; adjusting for that is left as an exercise for the reader.

20 comments:

randall said...

Remember, when you're at maximum productivity, a small change in coffee will not affect your productivity:

$ \frac{d\textrm{productivity}}{d\textrm{coffee}} = 0 $

I leave it as an exercise for the reader to figure out whether we'd actually all be better off switching to decaf. Probably so.

Unknown said...

That's true, but I think it's important to carefully consider the following as well:

$ \iiint_V \frac{\sin x}{\cos^2 y} + \sqrt[3]{z} \,\, dxdydz $

Unknown said...
This comment has been removed by the author.
Unknown said...
This comment has been removed by the author.
Unknown said...

$$ \iiint_V \frac{\sin x}{\cos^2 y} + sqrt[3]{z} \,\, dxdydz $$

Unknown said...

The most beautiful equation in the world:

$ e^{i \cdot \pi} = -1. $

Unknown said...

Or, alternately:

$ e^{i \cdot \pi} + 1 = 0. $

Unknown said...

$ \Notes\qh1b\tqh1d\zql I\raise4\Internote\qs\ibbu0N0\qh0{Nd}\tqh0N\relax
|\dble\qu g\sk\cu{^f}\relax
&\dble\isluru0n\ql n\sk\tslur0m\cl{^m}\relax
&\dble\sk\soupir\enotes $

Unknown said...

^^^ it was worth a shot.

randall said...

This should be $an$ $annoying$ $case$ for the script.

randall said...

Breaky case:

\[
F=ma
\]

randall said...

$2.50 to $300. $a$

randall said...

$$ \eta / s $$

xorgnz said...

Hey, that's pretty sweet.

I got pointed here by Dave at GeekISP. Mind if I nick it? It's for a custom CMS for www.orionsarm.com

Américo Tavares said...

$$\zeta(2)=\displaystyle\frac{\pi^{2}}{6}$$

randall said...

$a b c fdsjlhjk$

randall said...
This comment has been removed by the author.
randall said...

$\braketop{\ironfiftyseven}{\divergence}{\idmat}$

randall said...

$test single dollar$ $$test double dollar$$ \(test slash paren\) \[test slash bracket\]

randall said...

$ \iron \iron \iron $