The extension field $\mathbb{Q}(\sqrt {2} + \sqrt {3})$ can be represented by a $4$ - dimensional vector space over $\mathbb{Q}$ with basis $\{1, \sqrt {2}, \sqrt {3}, \sqrt {6}\} $.
I made a matrix model of such a field where presenting the numbers is done as shown in the following example:
{1,2,3,4}.{1, Sqrt[2], Sqrt[3], Sqrt[6]}
$1 + 2\sqrt {2} + 3\sqrt {3} + 4\sqrt {6} $
The number {1,0,0,1/2} should be represented as:
$1 + \frac{1}{2}\sqrt {6} $
but is in fact represented as
$1 + \sqrt{\frac{3}{2}}$
Is there a way to workaround this such that $ \{a,b,c,d \}$ is always represented as
$a + b\sqrt {2} + c\sqrt {3} + d\sqrt {6} $
I suppose the title of the question should then be 'How to display numbers as multiples of a square root' ?
{1, 0, 0, 1/2}.{1, Sqrt[2], Sqrt[3], Sqrt[6]} // ContinuedFraction // FromContinuedFraction
$\endgroup$