Succumbing to LaTeX   

For a long time I was reluctant to joint the many other sciencey blogs that had integrated equations by providing support for LaTeX, the technical typesetting system that nearly every physicist and mathematician uses. Possible reasons for this attitude include:

  1. We felt it was important to remain accessible to a wide range of readership, and feared that the appearance of equations would put people off (and tempt us into being unnecessarily technical).
  2. It sounded like work.

You can decide for yourself which is more true. The good thing is, there is no wrong answer!

But right now I am uninspired to blog because my brain is preoccupied with real science stuff. So I thought of posting about some of the fun ideas in quantum mechanics I’ve been learning about. But there’s really no way to do it without equations. So for that reason, and in belated honor of Donald Knuth’s birthday, I went and installed the LatexRenderer plugin. (Amazingly, InMotion Hosting already had LaTeX installed on our server. Yay for them!)

So now it’s easy to include equations; they should even be available in comments. All you have to do is type [tex], then your LaTeX commands, then [/tex]. So for example

[tex]R_{\mu\nu}-\frac{1}{2}Rg_{\mu\nu}=8\pi G T_{\mu\nu}[/tex]

should produce

R_{\mu\nu}-\frac{1}{2}Rg_{\mu\nu}=8\pi G T_{\mu\nu}.

Note the forward slash in the closing [/tex]! TeX-like commands use backslashes, but html-like commands use forward slashes.

There are a million online tutorials; try this list of commands to get you started. Use comments to this post to try it out. (Sadly, no preview, so be careful, and this post will remain open for playing around.) One thing I’ve noticed: don’t use linebreaks within the formulas, just put everything on the same line. And use “\displaystyle” if you want the look of a set-off (rather than in-line) equation.

But now I should get back to work. So to keep you thinking, here are a couple of equations from the stuff I’m thinking about and hopefully will explain soon:

\displaystyle \langle\langle \hat{\mathcal O}\rangle\rangle =\lim_{t \rightarrow \infty}\frac{1}{t}\int^t_0 \langle \psi_s|\hat{\mathcal O}|\psi_s\rangle ds = \rm{tr}(\hat\rho \hat{\mathcal O})\,,

\displaystyle \hat\rho = \frac{1}{Z} \exp{\left(-\beta \hat{H} - \sum^n_{i=2} \mu_i \hat{F}_i\right)}\,.

Kind of beautiful, in an austere way, don’t you think?


170 Comments on “Succumbing to LaTeX”   rss feed

  1. Sean

    Okay, here goes nothing:

    \displaystyle \frac{d}{dx}e^x = e^x.

  2. Sean

    Success!

  3. Sam

    [ tex] e_i\pi=-1 [ /tex]

  4. Big Vlad

    [tex] e^{\PI i} = -1 [\tex]

  5. Sean

    Shouldn’t have any spaces between the “[” and the “tex” or “\tex”.

  6. Sean

    And it’s \pi, not \PI.

  7. Big Vlad

     e^{\PI i} = -1

  8. Julianne

    This has to be the most fabulously geeky comment thread, EVAH!

  9. Neil B.

    Hi, I am still looking for good (and hopefully free) program to convert Word or maybe WPerfect to LaTex. The one I downloaded (Word2tex) seems unable to perform, likely because I just don’t get how to use all those wacky little files. I mean, I just want to rev up a simple click-to-start program (like any other Windows product) to take the Word doc and turn it into a LaTex document (and look at it to be sure it is right) without hassle, any help please? tx

  10. Sean

    Julianne, don’t you mean \ \epsilon\nu\alpha\hbar?

  11. HB

    \zeta(1/2+\pi^{-e}+i 10^{500} )=0

  12. Bob Munck

    LaTeX. That’s so 20th century. The modern, up-to-date way to support equations is MathML; it’s what all the kids are using these days.

    To be honest, we tried for weeks to get MathML to work on one of the Space Elevator forums, and never succeeded. Your LaTeX renderer is somewhat of a kludge, but one can’t argue with the fact that it works.

    Did you know that one of the programming languages used by NASA for the Space Shuttle software, HAL/S, supported multiple-line statements containing 2-D equations?

  13. Christina Pikas

    Not sure if it’s important, but it doesn’t seem to work in the feed. Reading the feed in bloglines, I just got the markup, not the equation.

  14. Sam Gralla

    \nabla^c \nabla_c h_{ab} - 2 R^c{}_{ab}{}^d h_{cd} = - 16 \pi M \int_\gamma \delta_4(x,z(\tau))\,u^a(\tau)u^b(\tau)\,d\tau,
    \nabla^b h_{ab}=O(\mu^2)

  15. Sam Gralla

    Oh yeah, first try. I’m a winner.

  16. Sean

    Christina, really? It shows up okay for me, both in bloglines and in Google reader. Which feed are you using? Do you usually see images? (Because that’s all they are.) Do you have some weird background color?

  17. tacitus

    Kind of beautiful, in an austere way, don’t you think?

    …and utter gobbledygook to physics and maths illiterates like me :)

    Have fun.

  18. Eugene

    I see your density matrices and raise you a unitary operator, stuff that I am thinking about

    [tex]i\frac{\partial}{\partial t} U(t,t’) = H_I(t)U(t,t’)[\tex]

  19. Freiddie

    [tex]\epsilon_123=1[\tex]
    Does it work?
    Does the first equation with the R_mu_nu in your blog post have anything to do with general relativity?
    And I haven’t got a clue what those “austerely beautiful” equations are, or mean.

  20. Freiddie

    [tex]\epsilon_{123}=1[\tex] Trying again

  21. Jerry Boetje

    Bob, I remember HAL from about an eon ago. Developed at Draper Labs in Cambridge and named for the gentleman who developed much of the Apollo navigation code. You could write a Kalman filter in 2 lines of code using the sub/superscript capability. Very cool. Thanks for reminding me of those days.

  22. Sean

    Forward slashes on the closing /tex, guys.

    Precision counts!

    \epsilon_{123}=1

    And yes, the first example is Einstein’s equation of general relativity.

  23. Helge

    [tex] det\begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix} = -1 {\tex]
    sucks.

  24. Helge

    [tex] det\begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix} = -1 [\tex]
    sucks.

  25. Jim

    Sean, this is fabulous! I’ve been looking for a host that has [tex]\LaTeX[\tex] installed. InMotion may be exactly what I’ve been looking for and may prompt a server switch in the very near future.

  26. Jim

    Huh, I think I got the ending tag wrong (it’s counterintuitive). It should have been \LaTeX.

  27. Brad Holden

    i_{775} - z_{850} > 1.5

    Its hard not to type the $, \( or \[

  28. astropixie

    “For a long time I was reluctant to joint the many other sciencey blogs that had integrated equations by providing support for LaTeX”

    heck, my fellow grad student’s advisor remains reluctant to join the many other sciencey folks that had integrated equations using anything other than FORTRAN!!

  29. seriously

    [tex]W^{h^{e^{e^{e^{e^{e^{e^{e^{e^{e^{e^e}}}}}}}}}}}[\tex]

    [tex]W_{h_{o_{o_{o_{o_{o_{o_{o_{o_{o_{o_o}}}}}}}}}}}[\tex]

  30. seriously

    W^{h^{e^{e^{e^{e^{e^{e^{e^{e^{e^{e^e}}}}}}}}}}}

    W_{h_{o_{o_{o_{o_{o_{o_{o_{o_{o_{o_o}}}}}}}}}}}

  31. Freiddie

    \epsilon_123=1

  32. Freiddie

    [tex]\epsilon_{123}=1[\tex] Now this should work

  33. Freiddie

    \epsilon_{123}=1 Now this must work!

  34. Bob Munck

    Bob, I remember HAL from about an eon ago. Developed at Draper Labs in Cambridge and named for the gentleman who developed much of the Apollo navigation code.

    Really? I thought HAL/S stood for Houston Aerospace Language/Shuttle. It was supported by a Fresh Pond company named Intermetrics (a rival of my own SofTech). I had a little bit to do with re-targeting it to a French CPU, the Metra 4 (I think) when I was working for ESA on Spacelab.

  35. Name (required)

    \langle \langle \hat{\mathcal{O}} \rangle \rangle = \lim_{t \rightarrow \infty} \frac{1}{t} \int_0^t \langle \psi_s \left| \hat{\cal{O}} \right| \psi_s \rangle ds = \mbox{Tr} \left( \hat{\rho} \hat{\mathcal{O}} \right) ,

    \hat{\rho} = \frac{1}{Z} \mbox{exp} \left( \beta \hat{H} + \sum_{i=2}^n \mu_i \hat{F}_i \right) .

  36. Name (required)

    Hmm, seems to evaluate as inline LaTeX for some reason. Maybe it’s the html tags?

    \langle \langle \hat{\mathcal{O}} \rangle \rangle = \lim_{t \rightarrow \infty} \frac{1}{t} \int_0^t \langle \psi_s \left| \hat{\cal{O}} \right| \psi_s \rangle ds = \mbox{Tr} \left( \hat{\rho} \hat{\mathcal{O}} \right) ,

    \hat{\rho} = \frac{1}{Z} \mbox{exp} \left( \beta \hat{H} + \sum_{i=2}^n \mu_i \hat{F}_i \right) .

  37. Name (required)

    No, still no good. Excuse the debugging,

    \frac{1}{2}

    \int_0^{\infty}

  38. Name (required)

    \frac{0}{0}

  39. efp

    \pi \approx \ln 6^{\ln 5^{\ln 4^{\ln 3^{\ln 2}}}}

  40. Brendon Brewer

    Hmm, looks like Sean’s thinking about the long-term time averages of certain quantities in quantum statistical mechanics. I wonder why?

  41. Sam

     e_{\pi i}=-1

    second try…

  42. Name (required)

    \begin{displaymath} \int_0^\infty \frac{1}{x^x} dx \end{displaymath}

    [tex]\begin{displaystyle} \frac{1}{\pi} \int_0^\pi \cos \left( n t - x \sin t \right) dt \end{displaymath}{/tex]

  43. Sam

     e^{\pi i}=-1

    third try…

  44. Sean

    It’s really just “\displaystyle”; e.g.

    (tex)\sum_{n=0}^\infty(/tex)

    (with square brackets instead of parentheses) gives

     \sum_{n=0}^\infty

    while

    (tex)\displaystyle \sum_{n=0}^\infty(/tex)

    gives

    \displaystyle \sum_{n=0}^\infty

  45. Name (required)

    Oh well.

    Hmm, looks like Sean’s thinking about the long-term time averages of certain quantities in quantum statistical mechanics. I wonder why?

    Apparently he’s relating the long-term time average of a pure-state expectation value in the limit t\rightarrow \infty, with the instantaneous exp. value of a mixed state

    \langle \langle \hat{\mathcal{O}} \rangle \rangle = \lim_{t \rightarrow \infty} \frac{1}{t} \int_0^t \langle \psi_s \left| \hat{\cal{O}} \right| \psi_s \rangle ds = \mbox{Tr} \left( \hat{\rho} \hat{\mathcal{O}} \right) ,

    where \rho looks like a partition function, with n-1 funny-looking terms added to the hamiltonian

    \hat{\rho} = \frac{1}{Z} \mbox{exp} \left( \beta \hat{H} + \sum_{i=2}^n \mu_i \hat{F}_i \right) .

    The last time Sean blogged thermodynamics, it was about Boltzmann brains. Maybe these are quantum Boltzmann brains.

  46. Name (required)

    \displaystyle{ \langle \langle \hat{\mathcal{O}} \rangle \rangle = \lim_{t \rightarrow \infty} \frac{1}{t} \int_0^t \langle \psi_s \left| \hat{\cal{O}} \right| \psi_s \rangle ds = \mbox{Tr} \left( \hat{\rho} \hat{\mathcal{O}} \right) , }

    [tex]\displaystyle{ \hat{\rho} = \frac{1}{Z} \mbox{exp} \left( \beta \hat{H} + \sum_{i=2}^n \mu_i \hat{F}_i \right) .}

  47. Name (required)

    Eureka, it worked!

    \displaystyle \langle \langle \hat{\mathcal{O}} \rangle \rangle = \lim_{t \rightarrow \infty} \frac{1}{t} \int_0^t \langle \psi_s \left| \hat{\cal{O}} \right| \psi_s \rangle ds = \mbox{Tr} \left( \hat{\rho} \hat{\mathcal{O}} \right) ,

    \displaystyle \hat{\rho} = \frac{1}{Z} \mbox{exp} \left( \beta \hat{H} + \sum_{i=2}^n \mu_i \hat{F}_i \right) .

  48. TomR

    The electic field of a charge falls of like
    exp(-r/lambda)/r^2, where lambda is the so-called Debye screening length of the plasma.

    The electric field of a charge falls off like e^{-r/\lambda}/r^2 where \lambda is the so-called Debye screening length of the plasma

  49. TomR

    The electic field of a charge falls of like
    exp(-r/lambda)/r^2, where lambda is the so-called Debye screening length of the plasma.

    The electric field of a charge falls off like \dfrac{e^{-r/\lambda}}{r^2} where \lambda is the so-called Debye screening length of the plasma

  50. Eric

    S=-\frac{T}{2}\int d^2\zeta \sqrt{-\gamma} \gamma^{ab} h_{ab}

  51. Brendon Brewer

    Apparently he’s relating the long-term time average of a pure-state expectation value in the limit t\rightarrow \infty, with the instantaneous exp. value of a mixed state

    Hmm, that sounds like an ergodic theorem. I don’t like ergodic theorems because they pretty much have zero relevance except in algorithm design (MCMC and stuff).

  52. Carl Brannen

    The essence of the pure density operator formalism: States are operators instead of vectors. Example: |a\rangle \to \rho_a = |a\rangle \langle a|. Example: \psi(x) \to \rho(x,x') = \psi^*(x')\psi(x)

    Let \hat{S} be an operator that squares to 1. Then (1\pm\hat{S})/2 is (an opeartor and is also) an eigenstate of \hat{S} with eigenvalue \pm 1. Example, spin 1/2 in the X direction has the operator:
    \hat{X} = \left(\begin{array}{cc}0&1\\1&0\end{array}\right)
    and therefore the density matrix state corresponding to it is:
    \rho_X = 0.5\left(\begin{array}{cc}1&1\\1&1\end{array}\right)

    If it passes this, that’s pretty good…

  53. Carl Brannen

    Hmm. ampersands sort of don’t work in the definition of arrays, they get an extra “amp;” .

  54. Aristotle Pagaltzis

    Regarding preview, may I recommend the AJAX Comment Preview plugin? It’s the best preview function I’ve seen anywhere, and easy to set up.

  55. Jason

    Very nifty.

    [Unparseable or potentially dangerous latex formula. Error 5 : 501x140]

  56. Jason

    Well, it worked in my term paper… ah, well.

  57. Christian

    \lim_{3\rightarrow4}\sqrt{3}=2

  58. tca

    You could simply use the Emacs Muse package for the “all in one” Emacs. It supports latex2png.

    Testing LaTeX in wordpress:

    [ tex]
    R=\left(
    \begin{matrix}
    2q_0^2-1+2q_1^2&2q_1q_2-2q_0q_3&2q_0q_2+2q_1q_3\cr 2q_1q_2+2q_0q_3&2q_0^2-1+2q_2^2&2q_2q_3-2q_0q_1\cr
    2q_1q_3-2q_0q_2&2q_0q_1+2q_2q_3&2q_0^2-1+2q_3^2
    \end{matrix}
    \right)

  59. tca

    Did not work… Sorry!

  60. Pingback from LaTeX « Os Manos DALTON

    […] 23, 2008 Ora aqui está qualquer coisa de muito importante que acabei de descobrir através do Cosmic Variance: como escrever equações neste blog, e apenas em Wordpress, usando LaTeX… Fiquei […]

  61. Mark

    A limerick:

    \int_1^\sqrt{3} z^2\,dz \cross cos(\frac{3\pi}{9} = \ln\sqrt[3]{3}

  62. Mark

    2nd try:

    A limerick:

    \int_1^{\sqrt{3}} z^2\,dz \cross cos(\frac{3\pi}{9}) = \ln\sqrt[3]{3}

  63. Mark

    And of course I get the formatting right but screw up the formula.

    \int_1^{\sqrt[3]{3}} z^2\,dz cos(\frac{3\pi}{9}) = \ln\sqrt[3]{e}

  64. feg

    e^{i*pi}+1=0

  65. andy

    Hmm… not sure I know how this works, but…
    T = \left(\dfrac{L_\ast \left(1-A\right)}{ 16\pi\sigmaD^2 }\right)^\frac{1}{4}

  66. andy

    Try again…
    T = \left(\dfrac{L_\ast \left(1-A\right)}{ 16\pi \sigma D^2 }\right)^\frac{1}{4}

  67. Joerg

    \partial_t\vec{v}+[\nabla\cdot\vec{v}]=-\frac{1}{\rho}\nabla\vec{p}-\vec{g}-\nabla² \vec{v}²

  68. Joerg

    Wow that wasn’t right
    \partial_t\vec{v}+[\nabla\cdot\vec{v}]=-\frac{1}{\rho}\nabla\vec{p}-\vec{g}-\nu\nabla^2 \vec{v}^2

  69. Count Iblis

    \displaystyle\int_{0}^{\infty}\frac{x^{-p}}{1+x}dx=\frac{\pi}{\sin\left(\pi p\right)}

  70. Frank Oswalt

    \frac{Love - 0}{No Limit}

  71. Erick

    How can I use Latex on Windows? I’ve downloaded the Windows thing but when the interface comes up, there’s nothing to do. You know, to start a new document and start typing with those sciencey fonts..what am I missing?

  72. Navneeth

    Let [tex]\epsilon

  73. Navneeth

    [tex]Let \epsilon

  74. citrine

    Formatting LaTEX commands seeems cumbersome to me. I’d think typing the Standard Model Lagrangian would be a nightmare! Embarrassing confession - I typed two dissertations using the Word equations editor. I’m waiting for the point and click version of LaTEX - essentially a more versatile version of Word E.E.

  75. efp

    Re #71 & #74:

    http://www.mackichan.com

    It’s commercial, but its &ltbad french accent&gt very nice &lt/bad french accent&gt

    If anyone knows of a open source/cross-platform equivalent, I’m all ears. But don’t tell my Lyx, it doesn’t come close.

  76. efp

    Damn, what this blog needs is a preview button… :(

  77. Christina

    wrt feed (sorry slow to get back to this), on bloglines, I’m sub’d to: http://cosmicvariance.com/?feed=rss2
    I do see the pictures, have just a white background… or actually gray for that one (every other item is gray). I can put a screenshot somewhere if that would be helpful.

  78. Sean

    Frank Oswalt wins.

    Christina, it seems to work with

    http://cosmicvariance.com/feed/rss

    Try switching to that one to see if it works.

    Sorry about the lack of preview; we used to have one, but it broke for some unknown reason. The AJAX preview is also seemingly incompatible with our theme.

  79. Dave Bacon

    I see no equations using IE 7.0. There is a javascript error: Line 56, ‘document.getElementById(..) is null or not an object’

  80. Sean

    Sorry, I think that was my fault — tried to mess with a preview plugin, and mistakenly deactivated the latex plugin. Should be okay now.

  81. chemicalscum

    I see no equations using IE 7.0. There is a javascript error: Line 56, ‘document.getElementById(..) is null or not an object’

    I see no equations either on both FF 2.0.0.11 and IE6 on Windows. Haven’t yet tried it on a Linux box.

  82. chemicalscum

    Yep it’s working for me now.

  83. Navneeth

    \alpha\beta\gamma

  84. chemicalscum

    OK lets give it a try see if I can get some Dirac Notation:

    [Unparseable or potentially dangerous latex formula. Error 2 ]

  85. chemicalscum

    Oh well I’ll try again later.

  86. bswift

    oh, good times…

  87. mollishka

    \displaystyle \theta_{E}^{2} = \frac{4GM}{c^2}\frac{D_{LS}}{D_{L}D_{S}}

  88. MedallionOfFerret

    Emulation is the sincerest form of flattery:

    \displaystyle \langle\langle \hat{\mathcal O}\rangle\rangle =\lim_{t \rightarrow \infty}\frac{1}{t}\int^t_0 \langle \psi_s|\hat{\mathcal O}|\psi_s\rangle ds = \rm{tr}(\hat\rho \hat{\mathcal O})\,,

    \displaystyle \hat\rho = \frac{1}{Z} \exp{\left(-\beta \hat{H} - \sum^n_{i=2} \mu_i \hat{F}_i\right)}\,.

  89. MedallionOfFerret

    I also do “The rain in Spain falls mainly on the plain” quite well.

  90. andy

    [Unparseable or potentially dangerous latex formula. Error 2 ]

  91. andy

    Er… oops…

  92. andy

    [Unparseable or potentially dangerous latex formula. Error 2 ]

  93. andy

    Hmmm… doesn’t like square brackets…

    [Unparseable or potentially dangerous latex formula. Error 2 ]
    [Unparseable or potentially dangerous latex formula. Error 2 ]

  94. Count Iblis

    \left[A,B\right]=AB - BA

  95. Count Iblis

    So, I think it may be the dfrac command, Andy :)

  96. Hal S

    P_{\a\v\g}

  97. Hal S

    [tex]P_{avg}[\tex]

  98. Hal S

    P_{avg}

  99. Hal S

    P_{avg}=\frac{\Deltam}{\Deltat}c^2=\frac{\Deltap}{\Deltax}c^2

  100. Hal S

    still practicing

    \drac{\Delta t}

  101. Hal S

    P_{avg}=\dfrac{\Delta m}{\Delta t} c^2=\dfrac{\Delta p}{\Delta x} c^2

  102. Hal S

    cool

  103. Lawrence B. Crowell

    \partial_a\partial^a\phi~=~-m^2\phi~+~g^2\phi^3 F_{ab}F^{ab}
    with the action
    
S~\simeq~ \int d^4x \Big(\frac{1}{2}|\nabla\phi|^2~+~\phi^2\big(\sqrt{-g}\kappa R~+~\frac{1}{2}m^2~-~\frac{g^2}{4}\phi^2 F_{ab}F^{ab}\big)\Big),

  104. Freiddie

    I’m seeing all sorts of familiar and unfamiliar maths here! Hey, is that a Lie bracket?

  105. Blake Stacey

    Dang it, now I feel really guilty I didn’t finish my next SUSY QM post today. I find it’s actually harder to write the prose in between the equations than the equations themselves. . . .

    \{Q, Q^\dag\} = \mathcal{H},

    \{Q, Q\} = \{Q^\dag, Q^\dag\} = Z.

  106. agm

    Sean, I vote for Christian (#57) winning the thread. For the obvious reason.

  107. James Gallagher

    i\hbar\frac{\partial}{\partial t}\left|\Psi(t)\right>=H\left|\Psi(t)\right>

    OK, but you do need a previewer.

    LatexRender is cool in its quirky way, slightly naive, limited and won’t be the future, but hey, it’s fun.

    You wouldn’t get the superstring guys using it though. ;)

  108. James Gallagher

    For the pedantic, let’s make that Hamiltonian explicitly time dependent

    i\hbar\frac{\partial}{\partial t}\left|\Psi(t)\right>=H(t)\left|\Psi(t)\right>

  109. aatish

    \sum_{n=1}^{\infty}n = -\frac{1}{12}, therefore physics is crazy!

    I discovered latex on wordpress recently, so I’ve been going latex crazy on my website.

  110. Hal S

    Electrical theory

  111. Ghiret

    So, as you say in your book, covariant derivative of  V ^\mu is:

    \nabla _{\nu}V^\mu = \partial _\nu V^\mu+\Gamma^\mu^{\sigma\nu}V^\sigma

    I think, but I suppose I don’t remenber index placement really.

    (anyway, I was just trying latex :) )

  112. Ghiret

    Mmm, \sigma\mu should be down… :S

  113. James Nightshade

    (x+y)^n=\displaystyle \sum_{k=0}^n \left ( n \atop k \right ) x^{n-k}y^k

  114. Blake Stacey

    Now, the real question is, can we use LaTeX to write a Hamiltonian for the Quantum of Solace?

  115. benji

    Quadratic thingy, try 1

    x=\dfrac{-b\pm\sqrt{b^2-4ac}}{2a}

  116. benji

    Cool!

  117. andy.s

    -\frac{\hbar^2}{2m}\nabla^2\Psi + V\Psi = i\hbar\frac{\partial}{\partial t}\Psi

  118. andy.s

    Whoo hoo! Worked first time!

    Previews are for wussies!

  119. Chris

    You guys better worry whether Steven Hawking was right in his introduction to _A Brief History of Time_. He repeated advice given to him that for every equation used in the text, he would decrease his readership by 50%. By my estimates, the readership of this blog will soon be approximating the Planck Length.

  120. Count Iblis

    \displaystyle x^3 + p x + q = 0 \Longrightarrow

    \displaystyle \sqrt[3]{\sqrt{\left(\frac{p}{3}\right)^3+\left(\frac{q}{2}\right)^2} - \frac{q}{2}} - \sqrt[3]{\sqrt{\left(\frac{p}{3}\right)^3+\left(\frac{q}{2}\right)^2} + \frac{q}{2}}

  121. Count Iblis

    I meant to say:

    \displaystyle x^3 + p x + q = 0 \Longrightarrow

    \displaystyle x = \sqrt[3]{\sqrt{\left(\frac{p}{3}\right)^3+\left(\frac{q}{2}\right)^2} - \frac{q}{2}} - \sqrt[3]{\sqrt{\left(\frac{p}{3}\right)^3+\left(\frac{q}{2}\right)^2} + \frac{q}{2}}

  122. Brian

    \displaystyle \oint_s \vec{B} \cdot \da

    here goes…

  123. chris

    \begin{tabular}{ll}1 &2\\1&2\end{tabular}

  124. chris

    [tex]\begin{tabular}{ll} 1 2\\ 1 2\end{tabular}

  125. chris

    [tex]\begin{tabular}{ll} 1 2\\ 1 2\end{tabular}[\tex]

  126. chris

    \left( \begin{tabular}{ll} 1 2\\ 1 2\end{tabular}\right)

  127. chris

    \begin{tabular}{ll} 1 \left( \begin{tabular}{ll}1 2 \\ 1 2 \end{tabular}\right) \\ 1 2\end{tabular}

  128. chris

    \left(\begin{tabular}{ll} 1 \left( \begin{tabular}{ll}1 2 \\ 1 2 \end{tabular}\right) \\ 1 2\end{tabular}\right)

  129. chris

    [tex]\texbf{feel free to axe the above ones if things have become cluttered.}[/tex

  130. chris

    \texbf{feel free to axe the above ones if things have become cluttered.}

  131. chris

    \textbf{\sigma}=\right\{ \left( \begin{tabular}{ll}0 1// 1 0\end{tabular}\right) ,\left( \begin{tabular}{ll}0 -i// i 0\end{tabular}\right) , \left( \begin{tabular}{ll}1 0// -1 0\end{tabular}\right) \right\}

  132. chris

    That would have been a lot more impressive had it worked. :(

  133. chris

    \textbf{\sigma}=\right( \left( \begin{tabular}{ll}0 1\\ 1 0\end{tabular}\right) ,\left( \begin{tabular}{ll}0 -i \\ i 0\end{tabular}\right) , \left( \begin{tabular}{ll}1 0\\ -1 0\end{tabular}\right) \right)

  134. chris

    Okay, so much for that. Sorry about the big white splotches, you might want to get rid of them. Congrats on getting the latex!

  135. Seth

    Can’t resist..

    [Unparseable or potentially dangerous latex formula. Error 5 : 545x24]

  136. Seth

    Err… that was:

    \sigma(p(P)p(P) \to Y + X) = \int_0^1dx_1\int_0^1dx_2f_1(x_1)f_2(x_2)\sigma(q_1(x_1P)q_2(x_2P) \to Y)

    What’s wrong?

  137. Neil B.

    It looks like everyone forgot or overlooked my question at #9, LMK if you have an answer, tx

  138. Brian Drell

    [tex]E=\frac{n^2\pi^2\hbar^2}{2mL^2}[\tex]

  139. glenn

    R_{\mu\nu}-\frac{1}{2}Rg_{\mu\nu}=8\pi G T_{\mu\nu}

    hehe. I’m plagiarizing!

  140. James Gallagher

    I’ll try your formula Seth:

    [tex]\sigma(p(P)p(P) \to Y + X) = \int_0^1dx_1\int_0^1dx_2f_1(x_1)f_2(x_2)\sigma(q_1(x_1P)q_2(x_2P) \to Y[tex]

    “Potentially dangerous”, wow, these days you just don’t know where you are safe.

    Chris, I like your recent contributions, ala G Lissi, you’ve created a Theory of Nothing
    :)

  141. James Gallagher

    I’ll try your formula Seth:

    [Unparseable or potentially dangerous latex formula. Error 5 : 545x24]

    “Potentially dangerous”, wow, these days you just don’t know where you are safe.

    Chris, I like your recent contributions, ala G Lissi, you’ve created a Theory of Nothing
    :)

  142. Count Iblis

    Let’s give Seth’s formula another try:

    [tex]\sigma(p(P)p(P) \rightarrow Y + X) = \int_0^1dx_1\int_0^1dx_2f_1(x_1)f_2(x_2)\sigma(q_1(x_1P)q_2(x_2P) \rightarrow Y[\tex]

  143. Count Iblis

    OOps, made a trivial error, let’s try again:

    [Unparseable or potentially dangerous latex formula. Error 5 : 545x24]

  144. Count Iblis

    The software they use at Physicsforums does not complain, so perhaps here we need to care about the delimeters being closed properly… let’s try again:

    [Unparseable or potentially dangerous latex formula. Error 5 : 545x24]

  145. Freiddie

    I tried parsing the formula in Wikipedia - works fine,
    but I’m not sure it’ll work here.
    This is what you have been trying, right?
    \sigma(p(P)p(P) \rightarrow Y + X) = \int_0^1dx_1\int_0^1dx_2f_1(x_1)f_2(x_2)\sigma(q_1(x_1P)q_2(x_2P) \rightarrow Y
    Now, here’s the formula (may not work…):
    [Unparseable or potentially dangerous latex formula. Error 5 : 545x24]
    Does it work?

  146. Freiddie

    \sigma(p(P)p(P) \rightarrow Y + X) = \int_0^1dx_1\int_0^1dx_2f_1(x_1)f_2(x_2)\sigma(q_1(x_1P)q_2(x_2P) \rightarrow Y

  147. Freiddie

    Hey, it works! (I broke the entire formula into multiple pieces of [ tex ] and [ /tex ].

  148. C

    [Unparseable or potentially dangerous latex formula. Error 1 ]

  149. C

    Not quite working properly…maybe some packages need to be installed? For example, see http://sixthform.info/steve/wordpress/?p=24. Also, it would be nice to have the javascript option, where clicking on the equation brings up the latex code that generated it.

    \psset{unit=0.5cm}
    \begin{pspicture}(-4,-0.5)(4,8)
    \psgrid[subgriddiv=0,griddots=5,gridlabels=7pt](-4,-0.5)(4,8)
    \psline[linewidth=1pt]{->}(-4,0)(+4,0)
    \psline[linewidth=1pt]{->}(0,-0.5)(0,8)
    \psplot[plotstyle=curve,linewidth=0.5pt]{-4}{0.9}{10 x exp}% postscript function
    \rput[l](1,7.5){$10^x$}
    \psplot[plotstyle=curve,linecolor=red,linewidth=0.5pt]{-4}{3}{2 x exp}% postscript function
    \rput[l](2.2,7.5){\color{blue}$e^x$}
    \psplot[plotstyle=curve,linecolor=blue,linewidth=0.5pt]{-4}{2.05}{2.7183 x exp}% postscript function
    \rput[l](3.2,7.5){\color{red}$2^x$}
    \rput(4,8.5){\color{white}change\normalcolor}
    \rput(-4,-1){\color{white}bounding box\normalcolor}
    \end{pspicture}

  150. Count Iblis

    C, isn’t there anything to render postscript directly? Then we could all just compile the latex code (including possible eps figures) to postscript and copy and paste that on this blog :)

  151. Freiddie

    If you want to see the code (provided the equation is rendered correctly), simply look at the tooltip that appears when you move your mouse over the equation.

  152. Plato

    In Clifford’s Sandbox here are some tools for people to use. Carl helps quite a bit there. And, someone else mentioned mouse overs help too.

  153. Plato

    Also see Latex Spoken here for further examination

  154. Jason

    Excellent! Now I can submit the proof that girls are evil:

    \mathrm{girls} = \mathrm{time}\times\mathrm{money}
    \mathrm{time} = \mathrm{money}
    \mathrm{girls} = \mathrm{money}^2
    \mathrm{money} = \sqrt{\mathrm{evil}}
    \mathrm{girls} = \sqrt{\mathrm{evil}^2} = \mathrm{evil}

  155. Sean

    Shouldn’t that be plus or minus evil?

  156. James Gallagher

    Nope, it’s +evil, he made a slight error in the formatting, it should be

    \mathrm{girls} = \sqrt{\mathrm{evil}}^2

  157. Hal S

     \langle \rangle

  158. Eugene

    [tex]U=0[\tex]

  159. Eugene

    Bah
    U=0

  160. Hal S

     \dfrac{h \nu}{e^{\frac{h \nu}{k T}}-1}

  161. Hal S

     1…

  162. Hal S

    \int \dfrac{\delta E}{T}\

  163. Seth

    So I guess it was just the length of my formula that made it dangerous. Not an ideal feature, but then again that’s probably not a formula you’d write out in a blog entry. (It’s really more comprehensible when explained in words anyway.)

  164. andy.s

    I must say, Sean, the Google Ads sidebar comes up with some interesting associations from the repeated use of the word “Latex”.

  165. fishcake

    \oint

  166. andy.s

    \pi^+ = \frac{\bar{u}u - \bar{d}d}{\sqrt{2}}

  167. nuno

    -\frac{\hbar}{2m}\psi+V(x)\psi=i\hbar\frac{dH}{dt}

  168. nuno

    -\frac{\hbar^2}{2m}\nabla^2\psi+V(x)\psi=i\hbar\frac{dH}{dt}

  169. Traums

    19  = 1 x 2^4 + 0 x 2^3 + 0 x 2^2 + 1 x 2^1 + 1 x 2^0

  170. Traums

    19  = 1 * 2^4 + 0 * 2^3 + 0 * 2^2 + 1 * 2^1 + 1 * 2^0



Leave a Reply

You can use these HTML tags: <a href=""></a>, <em></em>, <strong></strong>, <blockquote></blockquote>. You cannot use <sup></sup> and <sub></sub>, even if they appear in the preview. Use "&lt;" and "&gt;" for "<" and ">".


Trackback URL for this post: http://cosmicvariance.com/2008/01/22/succumbing-to-latex/trackback/

Search