I have two points A & B rotating around some pivot P.
They start at 12 o'clock and start rotating clockwise around P simultaneously with different constant velocities ($s_A$ and $s_B$). The speed of $1$ is exactly 1 circle per second.
I'm treating their angles as two functions of time:
$$ \left\{ \begin{array}{c} f_A(t) = t \cdot s_A \mod{1} \\ f_B(t) = t \cdot s_B \mod{1} \end{array} \right. $$
https://www.desmos.com/calculator/23tuf1qmhw
Given some time $t_{input}$, how to calculate how many times did the two points overlap ($f_A = f_B$) in range $t \in [0;t_{input}]$?
Additional meta-question: what is the correct mathematical notation to describe the function (that I'm looking for) in above sentence in one formula?
I've been staring at those functions and cannot come up with a solution.
Sorry if there are any oversights in my formulas or statements - I'm new to TeX, so please let me know if I should change anything.
Thanks in advance.