Archive for pi
What does the symbol for pi with a lower perpendicular mean?
Posted in Books, pictures, University life with tags cross validated, indicator function, LaTeX, pi, symbol on November 1, 2019 by xi'anprincipal components [xkcd repost]
Posted in Kids with tags bike path, cat, data analysis, lint, pi, principal components, taxes, xkcd on January 13, 2017 by xi'an\STATE [algorithmic package]
Posted in Books, Kids, pictures, R, Statistics, Travel, University life with tags algorithmic, AMSI, Australia, Beamer, high school mathematics, LaTeX, Monte Carlo Statistical Methods, pi, R, simulation on June 8, 2012 by xi'anI fought with my LαTεX compiler this morning as it did not want to deal with my code:
\begin{algorithmic}[1] \STATE N=1000 \STATE $\hat\pi=0$ \FOR {I=1,N} \STATE X=RDN(1), Y=RDN(1) \IF {$\text{X}^2+\text{Y}^2<1$} $\hat\pi$ = $\hat\pi +1$ \ENDIF \ENDFOR \RETURN 4*$\hat\pi/$N \end{algorithmic}
looking on forums for incompatibilities between beamer and algorithmic, and adding all kinds of packages, to no avail. Until I realised one \STATE was missing:
\begin{algorithmic}[1] \STATE N=1000 \STATE $\hat\pi=0$ \FOR {I=1,N} \STATE X=RDN(1), Y=RDN(1) \IF {$\text{X}^2+\text{Y}^2<1$} \STATE $\hat\pi$ = $\hat\pi +1$ \ENDIF \ENDFOR \RETURN 4*$\hat\pi/$N \end{algorithmic}
(This is connected with my AMSI public lecture on simulation, obviously!)