The faster you move, the heavier you get.
The greater the distance, the lesser the force of attraction.
The faster you move through space, the slower you move through time.
Information entering black holes, are lost forever.
The tendency to move from order to disorder, increases as time progresses.
Opposite charges attract, similar charges repel.
PS : ↑ In order to display math — on my Tumblr — I need to escape the \ you see in front of these symbols: [, ], ( and ) ‽
e.g.
\[
Display math
\]\(Use math inline \)
How weird is that ?
Tag Archives: mathjax
MathJax
In order to get #MathJax, and Google-code-prettify working on your blog! You first have to add a few lines near the end of the </head> section of your html, as illustrated in the code-block below, or view the following image:
How? Choose customize, and then edit html. After the <body> tag, an ‘onload=’ event should be inserted.
Like so:
<head>
<!--
...lots of stuff...
...and then some more...
-->
<script type="text/javascript"
src="https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
<link href="https://google-code-prettify.googlecode.com/svn/trunk/src/prettify.css" type="text/css" rel="stylesheet"/>
<script src="https://google-code-prettify.googlecode.com/svn/trunk/src/prettify.js" type="text/javascript"></script>
<!-- prettify -->
</head>
<body onload="prettyPrint()">
In the advanced section, you add the following as custom css. I use a light-gray background, as it contrasts best (it must stand out!) with the dark theme-colors I use. Please adjust your coloring accordingly. 😉
E.g.:
pre.prettyprint {font-family: 'Noticia Text', serif;font-size:0.8em;overflow-x: auto;margin: 5px 5px 5px;color: #ff6600;background-color: #d3d3d3;}
Now you should be good to go. 😉 As evidenced by all the resulting code-blocks being highlighted and all that. 😉 Onto playing with (LaTeX) it is. 😀
Here’s le me trying out the MathJax javascript engine on my tumblr, and while I’m pleased with the results so far! 😉 I regret having to notice that equations who start with begin{aligned}, and end with end{aligned}, seem to confuse the script!?
Please consider this post as a “warming up” excerice. A way for me to get comfortably in writing in: (LaTeX). 😉
The Lorenz Equations:
$$ begin{aligned} dot{x} & = sigma(y-x) dot{y} & = rho x – y – xz dot{z} & = -beta z + xy end{aligned} $$
The Cauchy-Schwarz Inequality:
$$ left( sum_{k=1}^n a_k b_k right)^2 leq left( sum_{k=1}^n a_k^2 right) left( sum_{k=1}^n b_k^2 right) $$
A Cross product formula:
$$ mathbf{V}_1 times mathbf{V}_2 = begin{vmatrix} mathbf{i} & mathbf{j} & mathbf{k} frac{partial X}{partial u} & frac{partial Y}{partial u} & 0 frac{partial X}{partial v} & frac{partial Y}{partial v} & 0 end{vmatrix} $$
The probability of getting (k) heads when flipping (n) coins is:
$$ P(E) = {n choose k} p^k (1-p)^{ n-k} $$
An Identity of Ramanujan:
$$ frac{1}{Bigl(sqrt{phi sqrt{5}}-phiBigr) e^{frac25 pi}} = 1+frac{e^{-2pi}} {1+frac{e^{-4pi}} {1+frac{e^{-6pi}} {1+frac{e^{-8pi}} {1+ldots} } } } $$
A Rogers-Ramanujan Identity:
$$ 1 + frac{q^2}{(1-q)}+frac{q^6}{(1-q)(1-q^2)}+cdots = prod_{j=0}^{infty}frac{1}{(1-q^{5j+2})(1-q^{5j+3})}, quadquad text{for $|q|<1$}. $$
Maxwell’s Equations:
$$ begin{aligned} nabla times vec{mathbf{B}} -, frac1c, frac{partialvec{mathbf{E}}}{partial t} & = frac{4pi}{c}vec{mathbf{j}} nabla cdot vec{mathbf{E}} & = 4 pi rho nabla times vec{mathbf{E}}, +, frac1c, frac{partialvec{mathbf{B}}}{partial t} & = vec{mathbf{0}} nabla cdot vec{mathbf{B}} & = 0 end{aligned} $$
(✿づ◠‿◠)づ
#MathJax, and #google-code-prettify, now live. Here, and there. 😉
Tagged as: #mathjax, #latex, #javascript, #css, and #html
#MathJax, and #google-code-prettify, now live. Here, and there. 😉
Tagged as: #mathjax, #latex, #javascript, #css, and #html
Just me, trying out something new. ;-)
It’s been a while, since I looked into #mathjax, #latex, #javascript, #css, and #html. But now that I am, once again, and know how to use syntax highlighting on my tumblr, I’ll be sure to post more about it. 😉 Just keep an eye out on the pages section of this blog, as I probably will write a few dedicated pages, for you and me to peruse through, and refer to.
Here’s le me trying out the MathJax javascript engine on my tumblr, and while I’m pleased with the results so far! 😉 I regret having to notice that equations who start with begin{aligned}, and end with end{aligned}, seem to confuse the script!?
Please consider this post as a “warming up”…
Just me, trying out something new. ;-)
Here’s le me trying out the MathJax javascript engine on my tumblr, and while I’m pleased with the results so far! 😉 I regret having to notice that equations who start with begin{aligned}, and end with end{aligned}, seem to confuse the script!?
Please consider this post as a “warming up” excerice. A way for me to get comfortably in writing in: (LaTeX). 😉
The Lorenz Equations:
[ begin{aligned} dot{x} & = sigma(y-x) \ dot{y} & = rho x – y – xz \ dot{z} & = -beta z + xy end{aligned} ]
The Cauchy-Schwarz Inequality:
[ left( sum_{k=1}^n a_k b_k right)^2 leq left( sum_{k=1}^n a_k^2 right) left( sum_{k=1}^n b_k^2 right) ]
A Cross product formula:
[ mathbf{V}_1 times mathbf{V}_2 = begin{vmatrix} mathbf{i} & mathbf{j} & mathbf{k} \ frac{partial X}{partial u} & frac{partial Y}{partial u} & 0 \ frac{partial X}{partial v} & frac{partial Y}{partial v} & 0 end{vmatrix} ]
The probability of getting (k) heads when flipping (n) coins is:
[ P(E) = {n choose k} p^k (1-p)^{ n-k} ]
An Identity of Ramanujan:
[ frac{1}{Bigl(sqrt{phi sqrt{5}}-phiBigr) e^{frac25 pi}} = 1+frac{e^{-2pi}} {1+frac{e^{-4pi}} {1+frac{e^{-6pi}} {1+frac{e^{-8pi}} {1+ldots} } } } ]
A Rogers-Ramanujan Identity:
[ 1 + frac{q^2}{(1-q)}+frac{q^6}{(1-q)(1-q^2)}+cdots = prod_{j=0}^{infty}frac{1}{(1-q^{5j+2})(1-q^{5j+3})}, quadquad text{for $|q|<1$}. ]
Maxwell’s Equations:
[ begin{aligned} nabla times vec{mathbf{B}} -, frac1c, frac{partialvec{mathbf{E}}}{partial t} & = frac{4pi}{c}vec{mathbf{j}} \ nabla cdot vec{mathbf{E}} & = 4 pi rho \ nabla times vec{mathbf{E}}, +, frac1c, frac{partialvec{mathbf{B}}}{partial t} & = vec{mathbf{0}} \ nabla cdot vec{mathbf{B}} & = 0 end{aligned} ]
(✿づ◠‿◠)づ
Or: All this without predefined formatting:
The Lorenz Equations:
[
begin{aligned}
dot{x} & = sigma(y-x) \
dot{y} & = rho x - y - xz \
dot{z} & = -beta z + xy
end{aligned}
]
The probability of getting (k) heads when flipping (n) coins is:
[
P(E) = {n choose k} p^k (1-p)^{ n-k}
]
An Identity of Ramanujan:
[
frac{1}{Bigl(sqrt{phi sqrt{5}}-phiBigr) e^{frac25 pi}} =
1+frac{e^{-2pi}} {1+frac{e^{-4pi}} {1+frac{e^{-6pi}}
{1+frac{e^{-8pi}} {1+ldots} } } }
]
A Rogers-Ramanujan Identity:
[
1 + frac{q^2}{(1-q)}+frac{q^6}{(1-q)(1-q^2)}+cdots =
prod_{j=0}^{infty}frac{1}{(1-q^{5j+2})(1-q^{5j+3})},
quadquad text{for $|q|<1$}.
]
Maxwell’s Equations:
[
begin{aligned}
nabla times vec{mathbf{B}} -, frac1c, frac{partialvec{mathbf{E}}}{partial t} & = frac{4pi}{c}vec{mathbf{j}} \
nabla cdot vec{mathbf{E}} & = 4 pi rho \
nabla times vec{mathbf{E}}, +, frac1c, frac{partialvec{mathbf{B}}}{partial t} & = vec{mathbf{0}} \
nabla cdot vec{mathbf{B}} & = 0
end{aligned}
]
You must be logged in to post a comment.