General Discussion > Math and Science

PrettyPrinting your Math Posts

(1/3) > >>

Xeda112358:
If you want to post math stuff, it is a fantastic idea to take advantage of the [tex] <expression> [/tex] tags. Here is an example:

##e^{\sqrt{\frac{-3x}{2}}}##MathJax.Hub.Queue(["Typeset", MathJax.Hub, document.getElementById("bbclatex6631206b12b2c")]);console.log("Queued!"); versus e^(sqrt(-3x/2)).


The code used in the tags is called LaTex and you can look up the fun stuff you can do with it via Google. However, for a bit of a quick start I will give the following nonsense expression and it's code:


##\sqrt{3} \neq \frac{\pi^{2}}{6} = \sum_{k=1}^{\infty}{\frac{1}{k^{2}}} \gt \zeta \left(2+\epsilon\right), \epsilon \in \mathbb{R}, \epsilon>0##MathJax.Hub.Queue(["Typeset", MathJax.Hub, document.getElementById("bbclatex6631206b12b39")]);console.log("Queued!");


The code is:
[tex]\sqrt{3} \neq \frac{\pi^{2}}{6} = \sum_{k=1}^{\infty}{\frac{1}{k^{2}}} \gt \zeta \left(2+\epsilon\right), \epsilon \in \mathbb{R}, \epsilon>0[/tex]


That might look scary, so let's break it down:
\sqrt{} will put a square root symbol over everything inside {}
\neq is the "not equals" sign. There are also \leq, \lt, \geq, \gt.
\frac{numerator}{denominator} makes an expression in fraction form.
\pi is the pi symbol
^{exponent} raises the expression to a power
= is the = symbol
\sum_{lower limit}^{upper limit}{expression} creates a sum from an upper to lower limit (optional arguments). As a note, _{} creates a subscript, ^{} is a super script, if that helps to figure the stuff out.
\infty is the infinity symbol.
\gt is the greater than symbol
\zeta is the lower case zeta symbol. \Zeta is uppercase. LaTeX is case sensitive.
\left( is a left parentheses. It gets sized according to what comes between it and it's matching \right).
\in makes the "element of" symbol
\mathbb{} makes a "blackboard bold" character for certain special sets (N,Z,Q,A,R,C,H,O,S)


So for fun, here are some simpler codes and their outputs:
\left( 3^{2} \right)
##\left( 3^{2} \right)##MathJax.Hub.Queue(["Typeset", MathJax.Hub, document.getElementById("bbclatex6631206b12c8d")]);console.log("Queued!");


x_{n}
##x_{n}##MathJax.Hub.Queue(["Typeset", MathJax.Hub, document.getElementById("bbclatex6631206b12c9d")]);console.log("Queued!");


\frac{1}{k}
##\frac{1}{k}##MathJax.Hub.Queue(["Typeset", MathJax.Hub, document.getElementById("bbclatex6631206b12cab")]);console.log("Queued!");


\sum_{k=1}^{n}{\frac{1}{k}}
##\sum_{k=1}^{n}{\frac{1}{k}}##MathJax.Hub.Queue(["Typeset", MathJax.Hub, document.getElementById("bbclatex6631206b12cb7")]);console.log("Queued!");

Juju:
The board supports TeX now? Awesome. It will be pretty useful for you math people. I remember last year when I had university math courses and I did pretty much all my homework in LaTeX it's pretty powerful.

Sorunome:

--- Quote from: Juju on October 29, 2014, 10:52:35 am ---The board supports TeX now? Awesome. It will be pretty useful for you math people. I remember last year when I had university math courses and I did pretty much all my homework in LaTeX it's pretty powerful.

--- End quote ---
It already supported that since quite some time :P

aeTIos:
Well, if you don't tell us, we won't notice because everyone uses the quick reply box and never checks all bbtags :P

DJ Omnimaga:
I like that board feature, although it takes a bit to render it seems. At least it makes anything math-related much easier to read and more natural, not to mention you don't have to screenshot your formulas to post them.

As long as the SMF 2.0 mod used isn't involving OS 2.55MP :P
--- Quote from: aeTIos on October 29, 2014, 11:12:24 am ---Well, if you don't tell us, we won't notice because everyone uses the quick reply box and never checks all bbtags :P

--- End quote ---
I agree. Actually I think a lot of board features that got added during the upgrade were quietly added to see when members would finally notice. I noticed this particular feature since the beginning, though, but I didn't make much noise about it since I don't really follow math threads much anymore.

Navigation

[0] Message Index

[#] Next page

Go to full version