# formatting fractions involving square roots

How can I tell sage that I want the result to be shown as $\frac{1}{\sqrt{3}}$ rather than $\frac13\sqrt3$ when I type `show(1/sqrt(3))`

?

formatting fractions involving square roots

`show(1/sqrt(3))`

?

Asked: **
2016-01-30 06:48:36 -0500
**

Seen: **69 times**

Last updated: **2 days ago**

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.

Not really convenient but it gives the expected answer:

`show(sqrt(3).power(-1,hold=True))`

.