formatting fractions involving square roots

asked 2016-01-30 06:48:36 -0500

updated 2017-03-20 08:03:19 -0500

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

edit retag flag offensive close merge delete


Not really convenient but it gives the expected answer: show(sqrt(3).power(-1,hold=True)) .

ndomes gravatar imagendomes ( 2017-03-20 12:26:54 -0500 )edit