This is probably a very simple question, but I am struggling to find the answer.
Given:
\begin{equation} y_1 = A \cos(\omega t_1)\\ y_2 = A \cos(\omega t_2)\\ y_3 = A \cos(\omega t_3) \end{equation}
(I can go up to as much as $y_n = A \cos(\omega t_n)$. Using only $y_1$ and $y_2$ is also, probably, fine.)
So I know the $y's$ and $t's$. How do I find $A$ and $\omega$?
I, essentially, want to use that to compute the peak of a discrete signal I'm assuming is a cosine for a very short interval which includes that peak. So I thought if I can obtain the equation of the sinuoid then I can differentiate it, set it to $0$ and then solve for the $t$. That way I can obtain $t$ and $y$ at the maximum/peak.
$$ \begin{cases} y_1 = A\cos(\omega t_1)\\ y_2 = A\cos(\omega t_2)\\ \end{cases}\tag{1} $$ If you have two unknowns, $A, \omega$ you need only two equations.
If there is another equation, the risk is that the third is not compatible with the other two, like in this example $$ \begin{cases} a+b=10\\ a-b=4\\ 2a+3b=1\\ \end{cases} $$ first two equations have $a=7,b=3$ as result, but this doesn't satisfy the third equation. The system is inconsistent.
Back to $(1)$.
You get $A$ from the first equation $A=\frac{y_1}{\cos\omega t_1}$ and plug it in the second:
$y_2=\frac{y_1}{\cos\omega t_1}\cos \omega t_2$
$y_2\cos\omega t_1-y_1\cos\omega t_2=0$
which can be solved with numerical methods once you have the actual values.
There is no formula to solve something like
$1.2 \cos (3.6 \omega)-0.75 \cos (2.7 \omega)=0$
Once you get $\omega$ you substitute and find $A$.