Classical Physics

Please also see my previous post: Latex and WordPress.

From “The Feynman Lectures on Physics,” Table 18-1;

[allowphp]
require_once(“/usr/local/apache2/htdocs/wordpress_3.5.1/myphptex.inc”);
tex(‘begin{align}
nabla cdot vec{E} &= frac{rho}{epsilon_{0}} \\
nabla times vec{E} &= -frac{partial vec{B}}{partial t} \\
nabla cdot vec{B} &= 0 \\
c^{2} nabla times vec{B} &= frac{vec{j}}{epsilon_{0}}+frac{partial vec{E}}{partial t} \\
nabla cdot vec{j} &= -frac{partial rho}{partial t} \\
vec{F} &= q(vec{E}+vec{v} times vec{B}) \\
frac{d}{dt}vec{p} &= vec{F}, text{ where } vec{p}=frac{mvec{v}}{sqrt{1-v^2/c^2}} \\
vec{F} &= -G frac{m_1 m_2}{r^2}vec{e_r}
end{align}’);
[/allowphp]

Here is how you put the php code into your post. Note that “\” is writen as “\\” in tex().

postphp

This is “myphptex.inc” at your htttp server. The original version of the code, which I modified only slightly, is at http://oku.edu.mie-u.ac.jp/~okumura/stat/phptex.php.

myphptexinc

Leave a Reply

Your email address will not be published. Required fields are marked *