Some Python
x = [1,2,3,4,5,6]
y = [i*i for i in x]
And some R
df <- data.frame(x=py$x, y=py$y)
knitr::kable(df)
x | y |
---|---|
1 | 1 |
2 | 4 |
3 | 9 |
4 | 16 |
5 | 25 |
6 | 36 |
And Python again
from matplotlib import pyplot as pl
pl.plot(r.df.x, r.df.y)
pl.show()
Now some LaTeX
An inline \(\int_a^bf(x)dx\)
formula and a block formula
$$\sum_{i=1}^n\int_{a_i}^{b_i}f(\tau)d\tau$$