How to identify $a,b\in \mathbb{Z}$ from numerical value of $x=a+b\sqrt{5}$?

56 Views Asked by At

I know the numerical value of $x$, also know it can be written as $x=a+b\sqrt{c}$, where $a,b\in\mathbb{Z}$ and $c$ is known.

For example: try to find $a+b\sqrt{5}=8.70820393249937$.

Answer from Wolfram Alpha

WolframAlpha said it's $2+3\sqrt{5}$, that's right.