Looking at irrational numbers, I had an idea, as to computing square roots. Take the golden ratio. Numerically, it's 1.618.... but I can also write it like this: $\frac{1+ \sqrt{5}}{2}$
I want to figure an algorithm that can convert an irrational into the form $\frac{u+ \sqrt{v}}{w}$, where $u, v, w$ are natural numbers.(If it is possible. I'm only considering square roots for the answer.)
Now if you could, I would love it if you could complete my idea. I believe the given irrational can be a the root of a quadratic (not cubic or higher because I'm only considering square roots) by comparing the form $\frac{u+ \sqrt{v}}{w}$to the quadratic equation, if i let the number say, $n = \frac{u+ \sqrt{v}}{w}$, i think, if i take another number say $m = \frac{u- \sqrt{v}}{w}$ and keeping them as the roots off the quadratic, all the coefficients will be, natural numbers. (I'm not sure if this is 100% true, but I'm confident it is).
This said algorithm is to be coded into a computer, which will take a large number of digits as the input for accuracy.
Thank you.
A quadratic irrational will have an eventually periodic continued fraction.