# HG changeset patch
# User Nick Alexander <ncalexander@gmail.com>
# Date 1241918123 25200
# Branch symbolics_switch
# Node ID 75625c647b8a88d85520ac02038f2e6f1e2a5c91
# Parent  c2c97977273604df2685527796bb38ab6377973d
[mq]: rational.patch

diff -r c2c979772736 -r 75625c647b8a sage/rings/rational.pyx
--- a/sage/rings/rational.pyx	Sat May 09 17:36:14 2009 -0700
+++ b/sage/rings/rational.pyx	Sat May 09 18:15:23 2009 -0700
@@ -1241,16 +1241,16 @@
             [10, -10]
             sage: x = 81/5
             sage: x.sqrt()
-            9/sqrt(5)
+            9*sqrt(1/5)
             sage: x = -81/3
             sage: x.sqrt()
-            3*sqrt(3)*I
+            3*sqrt(-3)
         
         ::
         
             sage: n = 2/3
             sage: n.sqrt()
-            sqrt(2)/sqrt(3)
+            sqrt(2/3)
             sage: n.sqrt(prec=10)
             0.82
             sage: n.sqrt(prec=100)
@@ -1264,7 +1264,7 @@
             ...
             ValueError: square root of 2/3 not a rational number
             sage: sqrt(-2/3, all=True)
-            [sqrt(2)*I/sqrt(3), -sqrt(2)*I/sqrt(3)]
+            [sqrt(-2/3), -sqrt(-2/3)]
             sage: sqrt(-2/3, prec=53)
             0.816496580927726*I
             sage: sqrt(-2/3, prec=53, all=True)
@@ -1704,14 +1704,14 @@
             sage: (2/3)^I
             2^I/3^I
             sage: (2/3)^sqrt(2)
-            2^sqrt(2)/3^sqrt(2)
+            (2/3)^sqrt(2)
             sage: x,y,z,n = var('x,y,z,n')
             sage: (2/3)^(x^n + y^n + z^n)
-            3^(-z^n - y^n - x^n)*2^(z^n + y^n + x^n)
+            (2/3)^(x^n + y^n + z^n)
             sage: (-7/11)^(tan(x)+exp(x))
-            11^(-tan(x) - e^x)*(-7)^(tan(x) + e^x)
+            (-7/11)^(e^x + tan(x))
             sage: (2/3)^(3/4)
-            2^(3/4)/3^(3/4)
+            (2/3)^(3/4)
             sage: (-1/3)^0
             1
             sage: a = (0/1)^(0/1); a
@@ -2312,9 +2312,9 @@
             sage: gamma(1/2)
             sqrt(pi)
             sage: gamma(7/2)
-            15*sqrt(pi)/8
+            15/8*sqrt(pi)
             sage: gamma(-3/2)
-            4*sqrt(pi)/3
+            4/3*sqrt(pi)
             sage: gamma(6/1)
             120
             sage: gamma(1/3)
