This was a fun little experiment I wanted to do where I wanted to let a couple of children run around randomly in their lunch break maybe and plot their movements on a polar coordinates.
So the number of bois are set by n_bois and the number of seconds(or time points) they have their lunch break is set by recess_time. First I set the initial points of the bois as follows. These were simply set to be cartesian coordinates so that I can simply convert them to polar and see how it goes. \[
X_{i} = Unif(-100,100)\\
Y_{i} = Unif(-100,100)
\] And then for each \(t^{th}\) time point I calculated the following values
\[
angle_{t} = Unif(0,180)\\
speed_{t} = Unif(10,1000)\\
t = 1,2,...,recess_time\\
angles_{i} = Unif(-angle_{t},angle_{t})\\
speed_{i} = Unif(-speed_{t},speed_{t})\\
i = 1,2,...,n\_bois
\]
library(tidyverse)
── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
✔ dplyr 1.1.2 ✔ readr 2.1.4
✔ forcats 1.0.0 ✔ stringr 1.5.0
✔ ggplot2 3.4.2 ✔ tibble 3.2.1
✔ lubridate 1.9.2 ✔ tidyr 1.3.0
✔ purrr 1.0.1
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag() masks stats::lag()
ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors