Skip to content

Commit 930126c

Browse files
author
Release Manager
committed
sagemathgh-36152: `sage.rings`: Update `# needs` <!-- ^^^^^ Please provide a concise, informative and self-explanatory title. Don't put issue numbers in there, do this in the PR body below. For example, instead of "Fixes sagemath#1234" use "Introduce new method to calculate 1+1" --> <!-- Describe your changes here in detail --> <!-- Why is this change required? What problem does it solve? --> <!-- If this PR resolves an open issue, please link to it here. For example "Fixes sagemath#12345". --> - Part of: sagemath#29705 - Cherry-picked from: sagemath#35095 <!-- If your change requires a documentation PR, please link it appropriately. --> ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> <!-- If your change requires a documentation PR, please link it appropriately --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> <!-- Feel free to remove irrelevant items. --> - [x] The title is concise, informative, and self-explanatory. - [ ] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation accordingly. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on - sagemath#12345: short description why this is a dependency - sagemath#34567: ... --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> URL: sagemath#36152 Reported by: Matthias Köppe Reviewer(s): Kwankyu Lee, Matthias Köppe
2 parents 7fab7cf + 89e4c05 commit 930126c

File tree

89 files changed

+5496
-4946
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+5496
-4946
lines changed

src/sage/rings/abc.pyx

+46-46
Large diffs are not rendered by default.

src/sage/rings/algebraic_closure_finite_field.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# sage.doctest: optional - sage.rings.finite_rings
1+
# sage.doctest: needs sage.rings.finite_rings
22
r"""
33
Algebraic closures of finite fields
44

src/sage/rings/big_oh.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def O(*x, **kwds):
119119
Traceback (most recent call last):
120120
...
121121
ArithmeticError: O(y) not defined
122-
sage: O(x, y) # needs sage.symbolic
122+
sage: O(x, y)
123123
Traceback (most recent call last):
124124
...
125125
ArithmeticError: O(x, y) not defined

src/sage/rings/cfinite_sequence.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# -*- coding: utf-8 -*-
1+
# sage.doctest: needs sage.symbolic
22
r"""
33
C-Finite Sequences
44

src/sage/rings/complex_arb.pyx

+77-74
Large diffs are not rendered by default.

src/sage/rings/complex_conversion.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ cdef class CCtoCDF(Map):
1212
sage: f = CCtoCDF(CC, CDF) # indirect doctest
1313
sage: f(CC.0)
1414
1.0*I
15-
sage: f(exp(pi*CC.0/4))
15+
sage: f(exp(pi*CC.0/4)) # needs sage.symbolic
1616
0.7071067811865476 + 0.7071067811865475*I
1717
"""
1818
z = <ComplexDoubleElement>ComplexDoubleElement.__new__(ComplexDoubleElement)

src/sage/rings/complex_double.pyx

+73-67
Large diffs are not rendered by default.

src/sage/rings/complex_interval.pyx

+12-10
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ cdef class ComplexIntervalFieldElement(FieldElement):
230230
'-2.5000000000000000?*I'
231231
sage: CIF(1.5).str(base=3)
232232
'1.1111111111111111111111111111111112?'
233-
sage: CIF(1, pi).str(style='brackets')
233+
sage: CIF(1, pi).str(style='brackets') # needs sage.symbolic
234234
'[1.0000000000000000 .. 1.0000000000000000] + [3.1415926535897931 .. 3.1415926535897936]*I'
235235
236236
.. SEEALSO::
@@ -285,16 +285,18 @@ cdef class ComplexIntervalFieldElement(FieldElement):
285285
286286
EXAMPLES::
287287
288-
sage: sum(plot(CIF(RIF(1/k, 1/k), RIF(-k, k))) for k in [1..10])
288+
sage: sum(plot(CIF(RIF(1/k, 1/k), RIF(-k, k))) for k in [1..10]) # needs sage.plot
289289
Graphics object consisting of 20 graphics primitives
290290
291291
Exact and nearly exact points are still visible::
292292
293+
sage: # needs sage.plot
293294
sage: plot(CIF(pi, 1), color='red') + plot(CIF(1, e), color='purple') + plot(CIF(-1, -1))
294295
Graphics object consisting of 6 graphics primitives
295296
296297
A demonstration that `z \mapsto z^2` acts chaotically on `|z|=1`::
297298
299+
sage: # needs sage.plot sage.symbolic
298300
sage: z = CIF(0, 2*pi/1000).exp()
299301
sage: g = Graphics()
300302
sage: for i in range(40):
@@ -351,11 +353,11 @@ cdef class ComplexIntervalFieldElement(FieldElement):
351353
(2.50000000000000, 3.00000000000000)
352354
(-4.50000000000000, -4.00000000000000)
353355
356+
sage: # needs sage.symbolic
354357
sage: z = CIF(RIF(sqrt(2), sqrt(3)), RIF(e, pi))
355358
sage: a, b, c, d = z.bisection()
356359
sage: a.intersection(b).intersection(c).intersection(d) == CIF(z.center())
357360
True
358-
359361
sage: zz = a.union(b).union(c).union(c)
360362
sage: zz.real().endpoints() == z.real().endpoints()
361363
True
@@ -399,9 +401,9 @@ cdef class ComplexIntervalFieldElement(FieldElement):
399401
True
400402
sage: CIF(-5, 0).sqrt().is_exact()
401403
False
402-
sage: CIF(0, 2*pi).is_exact()
404+
sage: CIF(0, 2*pi).is_exact() # needs sage.symbolic
403405
False
404-
sage: CIF(e).is_exact()
406+
sage: CIF(e).is_exact() # needs sage.symbolic
405407
False
406408
sage: CIF(1e100).is_exact()
407409
True
@@ -985,7 +987,7 @@ cdef class ComplexIntervalFieldElement(FieldElement):
985987
Here a conversion to Maxima happens, which results in a ``TypeError``::
986988
987989
sage: a = CIF(2.3)
988-
sage: maxima(a)
990+
sage: maxima(a) # needs sage.symbolic
989991
Traceback (most recent call last):
990992
...
991993
TypeError
@@ -999,7 +1001,7 @@ cdef class ComplexIntervalFieldElement(FieldElement):
9991001
10001002
EXAMPLES::
10011003
1002-
sage: sage_input(CIF(RIF(e, pi), RIF(sqrt(2), sqrt(3))), verify=True)
1004+
sage: sage_input(CIF(RIF(e, pi), RIF(sqrt(2), sqrt(3))), verify=True) # needs sage.symbolic
10031005
# Verified
10041006
CIF(RIF(RR(2.7182818284590451), RR(3.1415926535897936)), RIF(RR(1.4142135623730949), RR(1.7320508075688774)))
10051007
sage: sage_input(ComplexIntervalField(64)(2)^I, preparse=False, verify=True)
@@ -1997,7 +1999,7 @@ cdef class ComplexIntervalFieldElement(FieldElement):
19971999
19982000
sage: CIF(2, 1).is_NaN()
19992001
False
2000-
sage: CIF(NaN).is_NaN()
2002+
sage: CIF(NaN).is_NaN() # needs sage.symbolic
20012003
True
20022004
sage: (1 / CIF(0, 0)).is_NaN()
20032005
True
@@ -2019,7 +2021,7 @@ cdef class ComplexIntervalFieldElement(FieldElement):
20192021
20202022
Check that :trac:`17285` is fixed::
20212023
2022-
sage: CIF(cos(2/3))
2024+
sage: CIF(cos(2/3)) # needs sage.symbolic
20232025
0.7858872607769480?
20242026
20252027
ALGORITHM:
@@ -2061,7 +2063,7 @@ cdef class ComplexIntervalFieldElement(FieldElement):
20612063
20622064
Check that :trac:`17825` is fixed::
20632065
2064-
sage: CIF(sin(2/3))
2066+
sage: CIF(sin(2/3)) # needs sage.symbolic
20652067
0.618369803069737?
20662068
20672069
ALGORITHM:

src/sage/rings/complex_interval_field.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def _magma_init_(self, magma):
304304
305305
sage: magma(ComplexIntervalField(100)) # optional - magma # indirect doctest
306306
Complex field of precision 30
307-
sage: floor(RR(log(2**100, 10)))
307+
sage: floor(RR(log(2**100, 10))) # needs sage.symbolic
308308
30
309309
"""
310310
return "ComplexField(%s : Bits := true)" % self.prec()
@@ -445,7 +445,7 @@ def __call__(self, x=None, im=None, **kwds):
445445
TypeError: unable to convert '1+I' to real interval
446446
sage: CIF(2,3)
447447
2 + 3*I
448-
sage: CIF(pi, e)
448+
sage: CIF(pi, e) # needs sage.symbolic
449449
3.141592653589794? + 2.718281828459046?*I
450450
sage: ComplexIntervalField(100)(CIF(RIF(2,3)))
451451
3.?

src/sage/rings/complex_mpc.pyx

+11-11
Original file line numberDiff line numberDiff line change
@@ -1195,27 +1195,27 @@ cdef class MPComplexNumber(sage.structure.element.FieldElement):
11951195
11961196
sage: MPC = MPComplexField()
11971197
sage: a = MPC(2,1)
1198-
sage: a.__pari__()
1198+
sage: a.__pari__() # needs sage.libs.pari
11991199
2.00000000000000 + 1.00000000000000*I
1200-
sage: pari(a)
1200+
sage: pari(a) # needs sage.libs.pari
12011201
2.00000000000000 + 1.00000000000000*I
1202-
sage: pari(a).type()
1202+
sage: pari(a).type() # needs sage.libs.pari
12031203
't_COMPLEX'
1204-
sage: a = MPC(pi)
1205-
sage: pari(a)
1204+
sage: a = MPC(pi) # needs sage.libs.pari sage.symbolic
1205+
sage: pari(a) # needs sage.libs.pari sage.symbolic
12061206
3.14159265358979
1207-
sage: pari(a).type()
1207+
sage: pari(a).type() # needs sage.libs.pari sage.symbolic
12081208
't_REAL'
12091209
sage: a = MPC(-2).sqrt()
1210-
sage: pari(a)
1210+
sage: pari(a) # needs sage.libs.pari
12111211
1.41421356237310*I
12121212
12131213
The precision is preserved, rounded up to the wordsize::
12141214
12151215
sage: MPC = MPComplexField(250)
1216-
sage: MPC(1,2).__pari__().bitprecision()
1216+
sage: MPC(1,2).__pari__().bitprecision() # needs sage.libs.pari
12171217
256
1218-
sage: MPC(pi).__pari__().bitprecision()
1218+
sage: MPC(pi).__pari__().bitprecision() # needs sage.libs.pari
12191219
256
12201220
"""
12211221
if mpfr_zero_p(self.value.re):
@@ -1520,7 +1520,7 @@ cdef class MPComplexNumber(sage.structure.element.FieldElement):
15201520
2.23606797749979
15211521
sage: a.__abs__()
15221522
2.23606797749979
1523-
sage: float(sqrt(2^2 + 1^1))
1523+
sage: float(sqrt(2^2 + 1^1)) # needs sage.symbolic
15241524
2.23606797749979
15251525
15261526
sage: b = MPC(42,0)
@@ -2192,7 +2192,7 @@ cdef class MPComplexNumber(sage.structure.element.FieldElement):
21922192
sage: a = MPC(1,0)
21932193
sage: a.dilog()
21942194
1.64493406684823
2195-
sage: float(pi^2/6)
2195+
sage: float(pi^2/6) # needs sage.symbolic
21962196
1.6449340668482262
21972197
21982198
::

0 commit comments

Comments
 (0)