Basic Equations
Entering equations in LateX is very similar to other programming languages, with a few distinct differences which will become obvious shortly.
Let's begin with the code for a very simple equation x = y/z
\begin{equation}
x = \frac{y}{z}
\end{equation}
|
|
This code is very simple, the only thing to bear in mind is to make sure you have the appropriate begin and end tags. Let's move onto something a bit more complicated:
\begin{equation}
\overline{x} = \frac{\sum_0^M x_i p_i}{\sum_0^M p_i}
\end{equation}
|
|
The notation here is different to what you are probably used to. To set the limits on a sum or integral you must use the "^" character as shown above. However, when using subscripts or superscripts the normal conditions apply... use "_" for subscripts and "^" for superscripts.
More useful equations and code to go with them:
\begin{equation}
\cos (2\theta) = \cos^2 \theta - \sin^2 \theta
\end{equation}
|
|
\begin{equation}
\int \cos (2\theta) = \int \cos^2 \theta - \int \sin^2 \theta
\end{equation} |
|
\begin{equation}
\int_0^\infty \cos x = \int_0^\infty \cos y - \int_0^\infty \sin y
\end{equation} |
|
Basic Tutorials:
Advanced Tutorials: