# 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))`

?

Please start posting anonymously - your entry will be published after you log in or create a new account.

Asked: ** 2016-01-30 13:48:36 +0200 **

Seen: **436 times**

Last updated: **Mar 20 '17**

why won't simplify multiply out square roots?

Simplify multiplication of SQRT()s

eliminating fractions and roots from equations

strange way to simplify square roots

radical expression for algebraic number

Laurent series, Rational Functions in sqrt(q)?

dividing vector(a,b) by sqrt(x) gives (a/x*sqrt(x),b/x*sqrt(x))

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))`

.Thanks, that is at least something. While playing with this, I noticed that

`power?`

and`power??`

documentation does not mention the`hold`

keyword at all.Searching for hold=True I just found https://ask.sagemath.org/question/757..., which makes this question a duplicate.

You have to look for

`power`

as a method of an expression, for example:`x.power?`

or`pi.power??`