CoCalc Public Filesrmd-equation-numbering / equation-numbering.rmd
Author: Harald Schilly
Compute Environment: Ubuntu 18.04 (Deprecated)

# Introduction

Using RMarkdown's bookdown rendering, long documents with LaTeX-style references can be rendered. More information here: bookdown: Authoring Books and Technical Documents with R Markdown

# Examples

## Example 1

The equation @ref(eq:binom) is well known.

## Example 2

Another well known formula is the following:

For a right triangle, if $c$ denotes the length of the hypotenuse
and $a$ and $b$ denote the lengths of the other two sides, we have

$$a^2 + b^2 = c^2 (\#eq:pyth)$$


Which is this equation:

# Fill up

A normal paragraph.

(ref:foo) A scatterplot of the data cars using base R graphics.

plot(cars)  # a scatterplot


More text ...

More text ...

## Python code

library(reticulate)
use_python("/usr/bin/python3")

import numpy as np
import pandas as pd
x = np.random.randn(1000)
pd.Series(x).describe()


### Plotting with Python

import seaborn
seaborn.set('paper')
import numpy as np
import matplotlib.pyplot as plt
xx = np.linspace(0, 10, 100)
yy = np.exp(0.1 * -xx) * np.sin(2 * xx)
plt.plot(xx, yy)
plt.grid(True)
plt.show()


More text ...

More text ...

More text ...

More text ...

More text ...

More text ...

More text ...

More text ...

More text ...

More text ...

More text ...