@@ -1,479 +0,0 @@
1−diff --git a/src/sage/calculus/calculus.py b/src/sage/calculus/calculus.py
2−index 3a417d9d5c..fadaadbaf6 100644
3−--- a/src/sage/calculus/calculus.py
4−+++ b/src/sage/calculus/calculus.py
5−@@ -231,7 +231,7 @@ Another example::
6− sage: f(x=3)
7− arcsinh(1)
8− sage: f.derivative(x)
9−- 1/3/sqrt(1/9*x^2 + 1)
10−+ 1/sqrt(x^2 + 9)
11−
12− We compute the length of the parabola from 0 to 2::
13−
14−@@ -1509,8 +1509,8 @@ def laplace(ex, t, s, algorithm='maxima'):
15− Testing SymPy::
16−
17− sage: laplace(t^n, t, s, algorithm='sympy')
18−- (s^(-n)*gamma(n + 1)/s, 0, -re(n) < 1)
19−-
20−+ (gamma(n + 1)/(s*s^n), 0, -re(n) < 1)
21−+
22− Testing Maxima::
23−
24− sage: laplace(t^n, t, s, algorithm='maxima')
25−diff --git a/src/sage/functions/hypergeometric.py b/src/sage/functions/hypergeometric.py
26−index 1fc2db5c94..f3e49b9cdb 100644
27−--- a/src/sage/functions/hypergeometric.py
28−+++ b/src/sage/functions/hypergeometric.py
29−@@ -34,7 +34,7 @@ Simplification (note that ``simplify_full`` does not yet call
30− sage: a.simplify_hypergeometric()
31− 1/((-e^x + 1)^e^x)
32− sage: a.simplify_hypergeometric(algorithm='sage')
33−- (-e^x + 1)^(-e^x)
34−+ 1/((-e^x + 1)^e^x)
35−
36− Equality testing::
37−
38−@@ -145,7 +145,7 @@ Series expansions of confluent hypergeometric functions::
39−
40− sage: hypergeometric_M(2, 2, x).series(x, 3)
41− 1 + 1*x + 1/2*x^2 + Order(x^3)
42−- sage: hypergeometric_U(2, 2, x).series(x == 3, 100).subs(x=1).n()
43−+ sage: hypergeometric_U(2, 2, x).series(x == 3, 100).subs(x=1).n() # known bug (see :trac:`25688`)
44− 0.403652637676806
45− sage: hypergeometric_U(2, 2, 1).n()
46− 0.403652637676806
47−@@ -773,7 +773,7 @@ def closed_form(hyp):
48− sage: closed_form(hypergeometric([], [], z))
49− e^z
50− sage: closed_form(hypergeometric([a], [], z))
51−- (-z + 1)^(-a)
52−+ 1/((-z + 1)^a)
53− sage: closed_form(hypergeometric([1, 1, 2], [1, 1], z))
54− (z - 1)^(-2)
55− sage: closed_form(hypergeometric([2, 3], [1], x))
56−@@ -1121,7 +1121,7 @@ class Hypergeometric_U(BuiltinFunction):
57− sage: var('a b z')
58− (a, b, z)
59− sage: hypergeometric_U(a, b, z).generalized()
60−- z^(-a)*hypergeometric((a, a - b + 1), (), -1/z)
61−+ hypergeometric((a, a - b + 1), (), -1/z)/z^a
62− sage: hypergeometric_U(1, 3, 1/2).generalized()
63− 2*hypergeometric((1, -1), (), -2)
64− sage: hypergeometric_U(3, I, 2).generalized()
65−diff --git a/src/sage/functions/log.py b/src/sage/functions/log.py
66−index 75d1bf8060..61968582af 100644
67−--- a/src/sage/functions/log.py
68−+++ b/src/sage/functions/log.py
69−@@ -518,17 +518,17 @@ class Function_polylog(GinacFunction):
70−
71− sage: BF = RealBallField(100)
72− sage: polylog(2, BF(1/3))
73−- [0.36621322997706348761674629766 +/- 4.51e-30]
74−+ [0.36621322997706348761674629766... +/- ...]
75− sage: polylog(2, BF(4/3))
76−- nan
77−+ [2.27001825336107090380391448586 +/- 5.64e-30] + [-0.90377988538400159956755721265 +/- 8.39e-30]*I
78− sage: parent(_)
79−- Real ball field with 100 bits of precision
80−+ Complex ball field with 100 bits of precision
81− sage: polylog(2, CBF(1/3))
82−- [0.366213229977063 +/- 5.85e-16]
83−+ [0.366213229977063 +/- ...]
84− sage: parent(_)
85− Complex ball field with 53 bits of precision
86− sage: polylog(2, CBF(1))
87−- [1.644934066848226 +/- 6.59e-16]
88−+ [1.644934066848226 +/- ...]
89− sage: parent(_)
90− Complex ball field with 53 bits of precision
91− """
92−diff --git a/src/sage/functions/trig.py b/src/sage/functions/trig.py
93−index e7e7a311cd..1f2926d6c9 100644
94−--- a/src/sage/functions/trig.py
95−+++ b/src/sage/functions/trig.py
96−@@ -529,13 +529,8 @@ class Function_arcsin(GinacFunction):
97− arcsin
98− sage: asin(complex(1,1))
99− (0.6662394324925152+1.0612750619050357j)
100−-
101−- Check that :trac:`22823` is fixed::
102−-
103−- sage: bool(asin(SR(2.1)) == NaN)
104−- True
105−- sage: asin(SR(2.1)).is_real()
106−- False
107−+ sage: asin(SR(2.1))
108−+ 1.57079632679490 - 1.37285914424258*I
109− """
110− GinacFunction.__init__(self, 'arcsin', latex_name=r"\arcsin",
111− conversions=dict(maxima='asin', sympy='asin', fricas="asin", giac="asin"))
112−@@ -595,13 +590,8 @@ class Function_arccos(GinacFunction):
113− arccos
114− sage: acos(complex(1,1))
115− (0.9045568943023814-1.0612750619050357j)
116−-
117−- Check that :trac:`22823` is fixed::
118−-
119−- sage: bool(acos(SR(2.1)) == NaN)
120−- True
121−- sage: acos(SR(2.1)).is_real()
122−- False
123−+ sage: acos(SR(2.1))
124−+ 1.37285914424258*I
125− """
126− GinacFunction.__init__(self, 'arccos', latex_name=r"\arccos",
127− conversions=dict(maxima='acos', sympy='acos', fricas='acos', giac='acos'))
128−@@ -807,7 +797,7 @@ class Function_arcsec(GinacFunction):
129− sage: arcsec(2).n(100)
130− 1.0471975511965977461542144611
131− sage: arcsec(1/2).n(100)
132−- NaN
133−+ 1.3169578969248167086250463473*I
134− sage: RDF(arcsec(2)) # abs tol 1e-15
135− 1.0471975511965976
136− sage: arcsec(1 + I)
137−@@ -958,7 +948,9 @@ class Function_arctan2(GinacFunction):
138− sage: atan2(0,0,hold=True)
139− arctan2(0, 0)
140− sage: atan2(0,0,hold=True).n()
141−- NaN
142−+ Traceback (most recent call last):
143−+ ...
144−+ RuntimeError: atan2(): division by zero
145−
146− Check if :trac:`10062` is fixed, this was caused by
147− ``(I*I).is_positive()`` returning ``True``::
148−diff --git a/src/sage/geometry/hyperbolic_space/hyperbolic_geodesic.py b/src/sage/geometry/hyperbolic_space/hyperbolic_geodesic.py
149−index 3b5c8d1729..1c6b73a16c 100644
150−--- a/src/sage/geometry/hyperbolic_space/hyperbolic_geodesic.py
151−+++ b/src/sage/geometry/hyperbolic_space/hyperbolic_geodesic.py
152−@@ -1422,8 +1422,10 @@ class HyperbolicGeodesicUHP(HyperbolicGeodesic):
153− expressions do not generate runtime errors. ::
154−
155− sage: g=HyperbolicPlane().UHP().get_geodesic(-1+I,1+I)
156−- sage: g.midpoint()
157−- Point in UHP 1/2*(sqrt(2)*e^(1/2*arccosh(3)) - sqrt(2) + (I - 1)*e^(1/2*arccosh(3)) + I - 1)/((1/4*I - 1/4)*sqrt(2)*e^(1/2*arccosh(3)) - (1/4*I - 1/4)*sqrt(2) + 1/2*e^(1/2*arccosh(3)) + 1/2)
158−+ sage: point = g.midpoint(); point
159−+ Point in UHP -1/2*(sqrt(2)*...
160−+ sage: QQbar(point.coordinates()).radical_expression()
161−+ I*sqrt(2)
162−
163− Check that floating points remain floating points
164− in :meth:`midpoint` ::
165−diff --git a/src/sage/interfaces/fricas.py b/src/sage/interfaces/fricas.py
166−index 82aae78e37..8501ea2a18 100644
167−--- a/src/sage/interfaces/fricas.py
168−+++ b/src/sage/interfaces/fricas.py
169−@@ -1084,14 +1084,14 @@ class FriCASElement(ExpectElement):
170− 0.451026811796262,
171− 0.732815101786507,
172− 0.837981225008390,
173−- NaN,
174−- NaN,
175−+ 1.57079632679490 - 0.467145308103262*I,
176−+ 0.467145308103262*I,
177− 1.11976951499863,
178− 0.451026811796262,
179− 0.732815101786507,
180− 0.837981225008390,
181−- NaN,
182−- NaN]
183−+ 1.57079632679490 - 0.467145308103262*I,
184−+ 0.467145308103262*I]
185− sage: l = [tanh, sinh, cosh, coth, sech, csch, asinh, acosh, atanh, acoth, asech, acsch, arcsinh, arccosh, arctanh, arccoth, arcsech, arccsch]
186− sage: [f(x)._fricas_().sage().subs(x=0.9) for f in l] # optional - fricas
187− [0.716297870199024,
188−diff --git a/src/sage/libs/pynac/pynac.pyx b/src/sage/libs/pynac/pynac.pyx
189−index 9e9d8f664b..e3406f007e 100644
190−--- a/src/sage/libs/pynac/pynac.pyx
191−+++ b/src/sage/libs/pynac/pynac.pyx
192−@@ -1824,7 +1824,7 @@ cdef py_atan2(x, y):
193− sage: atan2(CC(I), CC(I+1))
194− 0.553574358897045 + 0.402359478108525*I
195− sage: atan2(CBF(I), CBF(I+1))
196−- [0.55357435889705 +/- 5.58e-15] + [0.402359478108525 +/- 7.11e-16]*I
197−+ [0.55357435889705 +/- ...] + [0.402359478108525 +/- ...]*I
198−
199− Check that :trac:`23776` is fixed and RDF input gives real output::
200−
201−diff --git a/src/sage/matrix/matrix_symbolic_dense.pyx b/src/sage/matrix/matrix_symbolic_dense.pyx
202−index 46a15e53eb..7a0beb437b 100644
203−--- a/src/sage/matrix/matrix_symbolic_dense.pyx
204−+++ b/src/sage/matrix/matrix_symbolic_dense.pyx
205−@@ -200,7 +200,7 @@ cdef class Matrix_symbolic_dense(Matrix_generic_dense):
206− sage: eval, [evec], mult = es[0]
207− sage: delta = eval*evec - evec*A
208− sage: abs(abs(delta)) < 1e-10
209−- sqrt(9/25*((2*sqrt(6) - 3)*(sqrt(6) - 2) + 7*sqrt(6) - 18)^2 + 9/25*((sqrt(6) - 2)*(sqrt(6) - 4) + 6*sqrt(6) - 14)^2) < (1.00000000000000e-10)
210−+ 3/5*sqrt(((2*sqrt(6) - 3)*(sqrt(6) - 2) + 7*sqrt(6) - 18)^2 + ((sqrt(6) - 2)*(sqrt(6) - 4) + 6*sqrt(6) - 14)^2) < (1.00000000000000e-10)
211− sage: abs(abs(delta)).n() < 1e-10
212− True
213−
214−diff --git a/src/sage/modules/matrix_morphism.py b/src/sage/modules/matrix_morphism.py
215−index 17a1d6e290..03892ceec0 100644
216−--- a/src/sage/modules/matrix_morphism.py
217−+++ b/src/sage/modules/matrix_morphism.py
218−@@ -214,9 +214,9 @@ class MatrixMorphism_abstract(sage.categories.morphism.Morphism):
219− sage: f((1, 0))
220− Traceback (most recent call last):
221− ...
222−- TypeError: Unable to coerce entries (=[1.00000000000000*I, 0.000000000000000]) to coefficients in Real Field with 53 bits of precision
223−+ TypeError: Unable to coerce entries (=[1.00000000000000*I, 0]) to coefficients in Real Field with 53 bits of precision
224− sage: f((1, 0), coerce=False)
225−- (1.00000000000000*I, 0.000000000000000)
226−+ (1.00000000000000*I, 0)
227−
228− """
229− if self.domain().is_ambient():
230−diff --git a/src/sage/plot/plot.py b/src/sage/plot/plot.py
231−index 77cdeb8c46..e501e74036 100644
232−--- a/src/sage/plot/plot.py
233−+++ b/src/sage/plot/plot.py
234−@@ -2061,7 +2061,7 @@ def _plot(funcs, xrange, parametric=False,
235− plot properly (:trac:`13246`)::
236−
237− sage: parametric_plot((x, arcsec(x)), (x, -2, 2))
238−- Graphics object consisting of 1 graphics primitive
239−+ Graphics object consisting of 2 graphics primitives
240−
241− """
242− from sage.plot.colors import Color
243−diff --git a/src/sage/repl/display/formatter.py b/src/sage/repl/display/formatter.py
244−index 8ce2e839d7..948207c95e 100644
245−--- a/src/sage/repl/display/formatter.py
246−+++ b/src/sage/repl/display/formatter.py
247−@@ -25,11 +25,11 @@ generally, all sage expression as an ASCII art object::
248− sage: shell = get_test_shell()
249− sage: shell.run_cell('%display ascii_art')
250− sage: shell.run_cell('integral(x^2/pi^x, x)')
251−- / 2 2 \ -x*log(pi)
252−- -\x *log (pi) + 2*x*log(pi) + 2/*e
253−- ---------------------------------------------
254−- 3
255−- log (pi)
256−+ -x / 2 2 \
257−+ -pi *\x *log (pi) + 2*x*log(pi) + 2/
258−+ --------------------------------------
259−+ 3
260−+ log (pi)
261− sage: shell.run_cell("i = var('i')")
262− sage: shell.run_cell('sum(i*x^i, i, 0, 10)')
263− 10 9 8 7 6 5 4 3 2
264−diff --git a/src/sage/rings/asymptotic/asymptotics_multivariate_generating_functions.py b/src/sage/rings/asymptotic/asymptotics_multivariate_generating_functions.py
265−index d8ebbf4f76..8c60f65e99 100644
266−--- a/src/sage/rings/asymptotic/asymptotics_multivariate_generating_functions.py
267−+++ b/src/sage/rings/asymptotic/asymptotics_multivariate_generating_functions.py
268−@@ -151,8 +151,8 @@ A multiple point example (Example 6.5 of [RaWi2012]_)::
269− [(x + 2*y - 1, 1), (2*x + y - 1, 1)])
270− sage: F1 = decomp[1]
271− sage: F1.asymptotics(p, alpha, 2)
272−- (-3*((2*a^2 - 5*a*b + 2*b^2)*r^2 + (a + b)*r + 3)*((1/3)^(-a)*(1/3)^(-b))^r,
273−- (1/3)^(-a)*(1/3)^(-b), -3*(2*a^2 - 5*a*b + 2*b^2)*r^2 - 3*(a + b)*r - 9)
274−+ (-3*((2*a^2 - 5*a*b + 2*b^2)*r^2 + (a + b)*r + 3)*(1/((1/3)^a*(1/3)^b))^r,
275−+ 1/((1/3)^a*(1/3)^b), -3*(2*a^2 - 5*a*b + 2*b^2)*r^2 - 3*(a + b)*r - 9)
276− sage: alpha = [4, 3]
277− sage: decomp = F.asymptotic_decomposition(alpha)
278− sage: F1 = decomp[1]
279−@@ -2159,7 +2159,7 @@ class FractionWithFactoredDenominator(RingElement):
280− sage: p = {x: 1/3, y: 1/3}
281− sage: alpha = (var('a'), var('b'))
282− sage: F.asymptotics_multiple(p, alpha, 2, var('r')) # long time
283−- (3*((1/3)^(-a)*(1/3)^(-b))^r*e^(2/3), (1/3)^(-a)*(1/3)^(-b), 3*e^(2/3))
284−+ (3*(1/((1/3)^a*(1/3)^b))^r*e^(2/3), 1/((1/3)^a*(1/3)^b), 3*e^(2/3))
285− """
286− from itertools import product
287− from sage.calculus.functions import jacobian
288−diff --git a/src/sage/stats/basic_stats.py b/src/sage/stats/basic_stats.py
289−index 16a268a02c..5fd244e93b 100644
290−--- a/src/sage/stats/basic_stats.py
291−+++ b/src/sage/stats/basic_stats.py
292−@@ -183,7 +183,7 @@ def std(v, bias=False):
293− sage: std([])
294− NaN
295− sage: std([I, sqrt(2), 3/5])
296−- sqrt(1/450*(10*sqrt(2) - 5*I - 3)^2 + 1/450*(5*sqrt(2) - 10*I + 3)^2 + 1/450*(5*sqrt(2) + 5*I - 6)^2)
297−+ 1/15*sqrt(1/2)*sqrt((10*sqrt(2) - 5*I - 3)^2 + (5*sqrt(2) - 10*I + 3)^2 + (5*sqrt(2) + 5*I - 6)^2)
298− sage: std([RIF(1.0103, 1.0103), RIF(2)])
299− 0.6998235813403261?
300− sage: import numpy
301−diff --git a/src/sage/symbolic/expression.pyx b/src/sage/symbolic/expression.pyx
302−index ab4c05de3a..60f0dc549a 100644
303−--- a/src/sage/symbolic/expression.pyx
304−+++ b/src/sage/symbolic/expression.pyx
305−@@ -622,7 +622,7 @@ cdef class Expression(CommutativeRingElement):
306− sage: x^(-5)
307− x^(-5)
308− sage: x^(-y)
309−- x^(-y)
310−+ 1/(x^y)
311− sage: 2*x^(-1)
312− 2/x
313− sage: i*x
314−@@ -3621,14 +3621,14 @@ cdef class Expression(CommutativeRingElement):
315− sage: repl_dict = {b_0: b_0, b_3: b_1, b_2: b_3, b_1: b_2}
316− sage: P = precomp.substitute(repl_dict)
317− sage: P.expand()
318−- -2^(-b_0)*2^(-b_2)*2^b_3 - 2^b_0*2^(-b_2)*2^b_3 -
319−- 2^(-b_0)*2^b_2*2^b_3 + 2^b_0*2^b_2*2^b_3 - 2*2^(-b_0)*2^(-b_2)
320−- - 2*2^b_0*2^(-b_2) - 2*2^(-b_0)*2^b_2 + 2*2^b_0*2^b_2 +
321−- 2^(-b_0)*2^b_3 + 2^b_0*2^b_3 + 2^(-b_2)*2^b_3 + 2^b_2*2^b_3 +
322−- 2*2^(-b_0) + 2*2^b_0 + 2*2^(-b_2) + 2*2^b_2 - 9*2^b_3 -
323−- 2^(-b_0)*2^(-b_2)/2^b_3 - 2^b_0*2^(-b_2)/2^b_3 -
324−- 2^(-b_0)*2^b_2/2^b_3 + 2^b_0*2^b_2/2^b_3 + 2^(-b_0)/2^b_3 +
325−- 2^b_0/2^b_3 + 2^(-b_2)/2^b_3 + 2^b_2/2^b_3 - 9/2^b_3 - 18
326−+ 2^b_0*2^b_2*2^b_3 + 2*2^b_0*2^b_2 + 2^b_0*2^b_3 + 2^b_2*2^b_3 +
327−+ 2*2^b_0 + 2*2^b_2 - 9*2^b_3 + 2^b_0*2^b_2/2^b_3 -
328−+ 2^b_0*2^b_3/2^b_2 - 2^b_2*2^b_3/2^b_0 - 2*2^b_0/2^b_2 -
329−+ 2*2^b_2/2^b_0 + 2^b_0/2^b_3 + 2^b_2/2^b_3 + 2^b_3/2^b_0 +
330−+ 2^b_3/2^b_2 + 2/2^b_0 + 2/2^b_2 - 2^b_0/(2^b_2*2^b_3) -
331−+ 2^b_2/(2^b_0*2^b_3) - 9/2^b_3 - 2^b_3/(2^b_0*2^b_2) -
332−+ 2/(2^b_0*2^b_2) + 1/(2^b_0*2^b_3) + 1/(2^b_2*2^b_3) -
333−+ 1/(2^b_0*2^b_2*2^b_3) - 18
334−
335− sage: _0,b_1,b_2=var('b_0,b_1,b_2')
336− sage: f = 1/27*b_2^2/(2^b_2)^2 + 1/27*b_1^2/(2^b_1)^2 + \
337−@@ -3809,7 +3809,7 @@ cdef class Expression(CommutativeRingElement):
338−
339− sage: x = SR.symbol('x', domain='real')
340− sage: (x^3)^(1/3)
341−- (x^3)^(1/3)
342−+ x
343− sage: (x^4)^(1/4)
344− abs(x)
345− sage: (x^8)^(1/4)
346−@@ -3872,7 +3872,7 @@ cdef class Expression(CommutativeRingElement):
347− sage: 2^(x/log(2))
348− e^x
349− sage: 2^(-x^2/2/log(2))
350−- e^(-1/2*x^2)
351−+ 1/e^(1/2*x^2)
352− sage: x^(x/log(x))
353− x^(x/log(x))
354− sage: assume(x > 0)
355−@@ -4816,18 +4816,24 @@ cdef class Expression(CommutativeRingElement):
356− sage: ((x+y)^(x+y)).match(w0^w0)
357− {$0: x + y}
358− sage: t = ((a+b)*(a+c)).match((a+w0)*(a+w1))
359−- sage: t[w0], t[w1]
360−- (c, b)
361−+ sage: set([t[w0], t[w1]]) == set([b, c])
362−+ True
363− sage: ((a+b)*(a+c)).match((w0+b)*(w0+c))
364− {$0: a}
365− sage: t = ((a+b)*(a+c)).match((w0+w1)*(w0+w2))
366−- sage: t[w0], t[w1], t[w2]
367−- (a, c, b)
368−- sage: print(((a+b)*(a+c)).match((w0+w1)*(w1+w2)))
369−- None
370−+ sage: t[w0]
371−+ a
372−+ sage: set([t[w1], t[w2]]) == set([b, c])
373−+ True
374−+ sage: t = ((a+b)*(a+c)).match((w0+w1)*(w1+w2))
375−+ sage: t[w1]
376−+ a
377−+ sage: set([t[w0], t[w2]]) == set([b, c])
378−+ True
379− sage: t = (a*(x+y)+a*z+b).match(a*w0+w1)
380−- sage: t[w0], t[w1]
381−- (x + y, a*z + b)
382−+ sage: s = set([t[w0], t[w1]])
383−+ sage: s == set([x+y, a*z+b]) or s == set([z, a*(x+y)+b])
384−+ True
385− sage: print((a+b+c+d+f+g).match(c))
386− None
387− sage: (a+b+c+d+f+g).has(c)
388−@@ -4836,7 +4842,7 @@ cdef class Expression(CommutativeRingElement):
389− {$0: a + b + d + f + g}
390− sage: (a+b+c+d+f+g).match(c+g+w0)
391− {$0: a + b + d + f}
392−- sage: (a+b).match(a+b+w0)
393−+ sage: (a+b).match(a+b+w0) # known bug
394− {$0: 0}
395− sage: print((a*b^2).match(a^w0*b^w1))
396− None
397−@@ -5009,7 +5015,7 @@ cdef class Expression(CommutativeRingElement):
398− a^3 + b^3 + (x + y)^3
399−
400− sage: t.subs(w0 == w0^2)
401−- (x^2 + y^2)^18 + a^16 + b^16
402−+ a^8 + b^8 + (x^2 + y^2)^6
403−
404− sage: t.subs(a == b, b == c)
405− (x + y)^3 + b^2 + c^2
406−@@ -8392,9 +8398,13 @@ cdef class Expression(CommutativeRingElement):
407− sage: SR(I).arctan2(1)
408− arctan2(I, 1)
409− sage: SR(CDF(0,1)).arctan2(1)
410−- NaN + +infinity*I
411−- sage: SR(1).arctan2(CDF(0,1)) # known bug
412−- 0.7853981633974484 - 19.012501686914433*I
413−+ Traceback (most recent call last):
414−+ ...
415−+ ValueError: power::eval(): division by zero
416−+ sage: SR(1).arctan2(CDF(0,1))
417−+ Traceback (most recent call last):
418−+ ...
419−+ ValueError: power::eval(): division by zero
420−
421− sage: arctan2(0,oo)
422− 0
423−@@ -8656,7 +8666,7 @@ cdef class Expression(CommutativeRingElement):
424− 1/2*I*pi
425− sage: SR(1/2).arccosh()
426− arccosh(1/2)
427−- sage: SR(CDF(1/2)).arccosh() # rel tol 1e-15
428−+ sage: SR(CDF(1/2)).arccosh() # rel tol 1e-15
429− 1.0471975511965976*I
430− sage: maxima('acosh(0.5)')
431− 1.04719755119659...*%i
432−@@ -11687,7 +11697,7 @@ cdef class Expression(CommutativeRingElement):
433− sage: a.solve(t)
434− []
435− sage: b = a.canonicalize_radical(); b
436−- -23040.0*(-2.0*e^(1800*t) + 25.0*e^(900*t) - 32.0)*e^(-2400*t)
437−+ (46080.0*e^(1800*t) - 576000.0*e^(900*t) + 737280.0)*e^(-2400*t)
438− sage: b.solve(t)
439− []
440− sage: b.solve(t, to_poly_solve=True)
441−@@ -12163,14 +12173,14 @@ cdef class Expression(CommutativeRingElement):
442−
443− sage: (n,k,j)=var('n,k,j')
444− sage: sum(binomial(n,k)*binomial(k-1,j)*(-1)**(k-1-j),k,j+1,n)
445−- -(-1)^(-j)*sum((-1)^k*binomial(k - 1, j)*binomial(n, k), k, j + 1, n)
446−+ -(-1)^j*sum((-1)^k*binomial(k - 1, j)*binomial(n, k), k, j + 1, n)
447− sage: assume(j>-1)
448− sage: sum(binomial(n,k)*binomial(k-1,j)*(-1)**(k-1-j),k,j+1,n)
449− 1
450− sage: forget()
451− sage: assume(n>=j)
452− sage: sum(binomial(n,k)*binomial(k-1,j)*(-1)**(k-1-j),k,j+1,n)
453−- -(-1)^(-j)*sum((-1)^k*binomial(k - 1, j)*binomial(n, k), k, j + 1, n)
454−+ -(-1)^j*sum((-1)^k*binomial(k - 1, j)*binomial(n, k), k, j + 1, n)
455− sage: forget()
456− sage: assume(j==-1)
457− sage: sum(binomial(n,k)*binomial(k-1,j)*(-1)**(k-1-j),k,j+1,n)
458−@@ -12178,7 +12188,7 @@ cdef class Expression(CommutativeRingElement):
459− sage: forget()
460− sage: assume(j<-1)
461− sage: sum(binomial(n,k)*binomial(k-1,j)*(-1)**(k-1-j),k,j+1,n)
462−- -(-1)^(-j)*sum((-1)^k*binomial(k - 1, j)*binomial(n, k), k, j + 1, n)
463−+ -(-1)^j*sum((-1)^k*binomial(k - 1, j)*binomial(n, k), k, j + 1, n)
464− sage: forget()
465−
466− Check that :trac:`16176` is fixed::
467−diff --git a/src/sage/symbolic/relation.py b/src/sage/symbolic/relation.py
468−index da6f0eef42..4bd65ef572 100644
469−--- a/src/sage/symbolic/relation.py
470−+++ b/src/sage/symbolic/relation.py
471−@@ -895,7 +895,7 @@ def solve(f, *args, **kwds):
472− sage: (r[0][x], r[0][y])
473− (2*lambert_w(1/2), 1)
474− sage: solve(-2*x**3 + 4*x**2 - 2*x + 6 > 0, x, algorithm='sympy')
475−- [x < (1/6*sqrt(77) + 79/54)^(1/3) + 1/9/(1/6*sqrt(77) + 79/54)^(1/3) + 2/3]
476−+ [x < 1/3*(1/2)^(1/3)*(9*sqrt(77) + 79)^(1/3) + 2/3*(1/2)^(2/3)/(9*sqrt(77) + 79)^(1/3) + 2/3]
477− sage: solve(sqrt(2*x^2 - 7) - (3 - x),x,algorithm='sympy')
478− [x == -8, x == 2]
479− sage: solve(sqrt(2*x + 9) - sqrt(x + 1) - sqrt(x + 4),x,algorithm='sympy')