# HG changeset patch
# User Burcin Erocal <burcin@erocal.org>
# Date 1239558369 7200
# Node ID c5c2d8968912a885bfbb5eba54816098c167924c
# Parent cd16ae6f91f570cc24274e5c192b06488c30f4d6
Fix doctests to reflect how pi is printed in pynac.
diff git a/sage/symbolic/expression.pyx b/sage/symbolic/expression.pyx
a

b


2077  2077  sage: tan(sage.symbolic.constants.pi/2) 
2078  2078  Traceback (most recent call last): 
2079  2079  ... 
2080   ValueError: simple pole at 1/2*Pi 
 2080  ValueError: simple pole at 1/2*pi 
2081  2081  sage: tan(S(1)) 
2082  2082  tan(1) 
2083  2083  sage: tan(S(RealField(150)(1))) 
… 
… 

2117  2117  sage: S(1).arccos() 
2118  2118  0 
2119  2119  sage: S(1/2).arccos() 
2120   1/3*Pi 
 2120  1/3*pi 
2121  2121  sage: S(0.4).arccos() 
2122  2122  1.15927948072741 
2123  2123  sage: plot(lambda x: S(x).arccos(), 1,1) 
… 
… 

2133  2133  sage: x.arctan() 
2134  2134  arctan(x) 
2135  2135  sage: S(1).arctan() 
2136   1/4*Pi 
 2136  1/4*pi 
2137  2137  sage: S(1/2).arctan() 
2138  2138  arctan(1/2) 
2139  2139  sage: S(0.5).arctan() 
… 
… 

2152  2152  sage: x.arctan2(y) 
2153  2153  arctan2(x, y) 
2154  2154  sage: S(1/2).arctan2(1/2) 
2155   1/4*Pi 
 2155  1/4*pi 
2156  2156  sage: maxima.eval('atan2(1/2,1/2)') 
2157  2157  '%pi/4' 
2158  2158  
… 
… 

2160  2160  We compare a bunch of different evaluation points between 
2161  2161  Sage and Maxima: 
2162  2162  sage: S(0.7).arctan2(S(0.6)) 
2163   Pi + 0.862170054667226 
 2163  pi + 0.862170054667226 
2164  2164  
2165  2165  sage: float(S(0.7).arctan2(0.6)) 
2166  2166  0.8621700546672264 
… 
… 

2305  2305  sage: x.arccosh() 
2306  2306  arccosh(x) 
2307  2307  sage: S(0).arccosh() 
2308   1/2*I*Pi 
 2308  1/2*I*pi 
2309  2309  sage: S(1/2).arccosh() 
2310  2310  arccosh(1/2) 
2311  2311  sage: S(CDF(1/2)).arccosh() 
… 
… 

2394  2394  sage: (x/y).zeta() 
2395  2395  zeta(x/y) 
2396  2396  sage: S(2).zeta() 
2397   1/6*Pi^2 
 2397  1/6*pi^2 
2398  2398  sage: S(3).zeta() 
2399  2399  zeta(3) 
2400  2400  sage: S(CDF(0,1)).zeta() 