Skip to content

Commit 4e2ceee

Browse files
committed
src/sage/functions/min_max.py: add "long time" to one example
Integrating the symbolic maximum of {sin,cos} over [0,1] takes a long time on the first run. It takes 7s on my machine, but more importantly, often takes >5s on the CI and causes "slow doctest" warnings when it does. We mark it "long time" to avoid that.
1 parent 4cdd703 commit 4e2ceee

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/sage/functions/min_max.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,10 +239,11 @@ def _evalf_(self, *args, **kwds):
239239
We can usually integrate these expressions, but can't
240240
guarantee a symbolic answer in closed form::
241241
242-
sage: f = max_symbolic(sin(x), cos(x)) # needs sage.symbolic
243-
sage: r = integral(f, x, 0, 1) # needs sage.symbolic
242+
sage: # long time, needs sage.symbolic
243+
sage: f = max_symbolic(sin(x), cos(x))
244+
sage: r = integral(f, x, 0, 1)
244245
...
245-
sage: r.n() # abs tol 1e-8 # needs sage.symbolic
246+
sage: r.n() # abs tol 1e-8
246247
0.873911256504955
247248
"""
248249
return max_symbolic(args)

0 commit comments

Comments
 (0)