# Mathematical notation

*
*

Bear supports LaTeX and MathML.

*Note that this will only render in a MathML compatible browser. This covers most modern browsers, however it does not include some RSS readers.*

LaTeX can be written between `$`

inline and `$$`

block to be rendered in browser as MathML.

#### Inline:

```
The formula is $E=mc^2$
```

The formula is $E=m{c}^{2}$

#### Block:

```
$$
4 \, \text{H} \rightarrow \text{He} + 2 \, \text{e}^+ + 2 \, \nu_e + \gamma
$$
```

#### Full example:

```
# Introduction to $E=mc²$
*Note that $ and $$ should just render normally.*
Einstein's mass-energy equivalence is one of the most famous equations in physics. It states:
$$
E=mc^2
$$
where:
- $E$ is the energy of an object.
- $m$ is the mass of the object.
- $c$ is the speed of light in a vacuum (approximately $3 \times 10^8$ m/s).
In simple terms, this equation tells us that mass and energy are interchangeable. A small amount of mass can be converted into a large amount of energy, and vice versa.
## Energy conversion in the Sun
For example, in the Sun, nuclear fusion reactions convert hydrogen into helium. In these reactions, a small amount of the mass of the hydrogen is converted into energy, according to the equation $E=mc^2$.
$$
4 \, \text{H} \rightarrow \text{He} + 2 \, \text{e}^+ + 2 \, \nu_e + \gamma
$$
This is why the Sun has been able to produce enormous amounts of energy for billions of years.
```

# Introduction to $E=m{c}^{2}$

*Note that $ and $$ should just render normally.*

Einstein's mass-energy equivalence is one of the most famous equations in physics. It states:

$$E=m{c}^{2}$$where:

- $E$ is the energy of an object.
- $m$ is the mass of the object.
- $c$ is the speed of light in a vacuum (approximately $3\times {10}^{8}$ m/s).

In simple terms, this equation tells us that mass and energy are interchangeable. A small amount of mass can be converted into a large amount of energy, and vice versa.

## Energy conversion in the Sun

For example, in the Sun, nuclear fusion reactions convert hydrogen into helium. In these reactions, a small amount of the mass of the hydrogen is converted into energy, according to the equation $E=m{c}^{2}$.

$$4\phantom{\rule{0.167em}{0ex}}\text{H}\to \text{He}+2\phantom{\rule{0.167em}{0ex}}{\text{e}}^{+}+2\phantom{\rule{0.167em}{0ex}}{\nu}_{e}+\gamma $$This is why the Sun has been able to produce enormous amounts of energy for billions of years.