In order to show the positive root of a quadratic equation in Simple Continued Fractions I map the quadratic equation like;
$cx^2+(d−a)x−b=0\implies x=\frac{ax+b}{cx+d}$
where $a > c$ or perhaps $a>d$.
I believe this tells me that the positive root is somewhere between $\frac{a}{c}$ and $\frac{b}{d}$. I can assign it's average to $x$ to check if the floor of what i get is equal to $x$ or not. If not i can iterate over with the obtained result until their integer parts are equal but perhaps there is a better way.
On the other hand, I can of course go backwards to apply quadratic formula and floor it however it beats the purpose. I just want to know if there might be a shortcut from $x=\frac{ax+b}{cx+d}$
I tried $⌊\frac{a}{c}−(\frac{d}{c}−\frac{b}{a})⌋$ but i fails in some cases.
got to make a phone call