passagemath-repl 10.5.28__py3-none-any.whl → 10.5.29__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. passagemath_repl-10.5.29.data/data/share/jupyter/kernels/sagemath/kernel.json +1 -0
  2. passagemath_repl-10.5.29.data/data/share/jupyter/kernels/sagemath/logo-64x64.png +0 -0
  3. passagemath_repl-10.5.29.data/data/share/jupyter/kernels/sagemath/logo.svg +352 -0
  4. {passagemath_repl-10.5.28.dist-info → passagemath_repl-10.5.29.dist-info}/METADATA +3 -3
  5. {passagemath_repl-10.5.28.dist-info → passagemath_repl-10.5.29.dist-info}/RECORD +95 -24
  6. {passagemath_repl-10.5.28.dist-info → passagemath_repl-10.5.29.dist-info}/top_level.txt +1 -0
  7. sage/ext_data/all__sagemath_repl.py +1 -0
  8. sage/interfaces/all__sagemath_repl.py +1 -0
  9. sage/repl/ipython_kernel/install.py +6 -8
  10. sage/tests/books/__init__.py +2 -0
  11. sage/tests/books/computational-mathematics-with-sagemath/__init__.py +1 -0
  12. sage/tests/books/computational-mathematics-with-sagemath/calculus_doctest.py +549 -0
  13. sage/tests/books/computational-mathematics-with-sagemath/combinat_doctest.py +1053 -0
  14. sage/tests/books/computational-mathematics-with-sagemath/domaines_doctest.py +443 -0
  15. sage/tests/books/computational-mathematics-with-sagemath/float_doctest.py +477 -0
  16. sage/tests/books/computational-mathematics-with-sagemath/graphique_doctest.py +254 -0
  17. sage/tests/books/computational-mathematics-with-sagemath/graphtheory_doctest.py +418 -0
  18. sage/tests/books/computational-mathematics-with-sagemath/integration_doctest.py +290 -0
  19. sage/tests/books/computational-mathematics-with-sagemath/linalg_doctest.py +454 -0
  20. sage/tests/books/computational-mathematics-with-sagemath/linsolve_doctest.py +421 -0
  21. sage/tests/books/computational-mathematics-with-sagemath/lp_doctest.py +234 -0
  22. sage/tests/books/computational-mathematics-with-sagemath/mpoly_doctest.py +560 -0
  23. sage/tests/books/computational-mathematics-with-sagemath/nonlinear_doctest.py +490 -0
  24. sage/tests/books/computational-mathematics-with-sagemath/numbertheory_doctest.py +155 -0
  25. sage/tests/books/computational-mathematics-with-sagemath/polynomes_doctest.py +405 -0
  26. sage/tests/books/computational-mathematics-with-sagemath/premierspas_doctest.py +180 -0
  27. sage/tests/books/computational-mathematics-with-sagemath/programmation_doctest.py +662 -0
  28. sage/tests/books/computational-mathematics-with-sagemath/recequadiff_doctest.py +392 -0
  29. sage/tests/books/computational-mathematics-with-sagemath/sol/__init__.py +1 -0
  30. sage/tests/books/computational-mathematics-with-sagemath/sol/calculus_doctest.py +264 -0
  31. sage/tests/books/computational-mathematics-with-sagemath/sol/combinat_doctest.py +217 -0
  32. sage/tests/books/computational-mathematics-with-sagemath/sol/domaines_doctest.py +59 -0
  33. sage/tests/books/computational-mathematics-with-sagemath/sol/float_doctest.py +141 -0
  34. sage/tests/books/computational-mathematics-with-sagemath/sol/graphique_doctest.py +105 -0
  35. sage/tests/books/computational-mathematics-with-sagemath/sol/graphtheory_doctest.py +53 -0
  36. sage/tests/books/computational-mathematics-with-sagemath/sol/integration_doctest.py +56 -0
  37. sage/tests/books/computational-mathematics-with-sagemath/sol/linalg_doctest.py +56 -0
  38. sage/tests/books/computational-mathematics-with-sagemath/sol/linsolve_doctest.py +25 -0
  39. sage/tests/books/computational-mathematics-with-sagemath/sol/lp_doctest.py +47 -0
  40. sage/tests/books/computational-mathematics-with-sagemath/sol/mpoly_doctest.py +115 -0
  41. sage/tests/books/computational-mathematics-with-sagemath/sol/nonlinear_doctest.py +111 -0
  42. sage/tests/books/computational-mathematics-with-sagemath/sol/numbertheory_doctest.py +167 -0
  43. sage/tests/books/computational-mathematics-with-sagemath/sol/polynomes_doctest.py +107 -0
  44. sage/tests/books/computational-mathematics-with-sagemath/sol/recequadiff_doctest.py +58 -0
  45. sage/tests/books/judson-abstract-algebra/__init__.py +1 -0
  46. sage/tests/books/judson-abstract-algebra/actions-sage-exercises.py +51 -0
  47. sage/tests/books/judson-abstract-algebra/actions-sage.py +173 -0
  48. sage/tests/books/judson-abstract-algebra/algcodes-sage.py +130 -0
  49. sage/tests/books/judson-abstract-algebra/boolean-sage.py +269 -0
  50. sage/tests/books/judson-abstract-algebra/cosets-sage-exercises.py +87 -0
  51. sage/tests/books/judson-abstract-algebra/cosets-sage.py +170 -0
  52. sage/tests/books/judson-abstract-algebra/crypt-sage.py +151 -0
  53. sage/tests/books/judson-abstract-algebra/cyclic-sage.py +450 -0
  54. sage/tests/books/judson-abstract-algebra/domains-sage.py +163 -0
  55. sage/tests/books/judson-abstract-algebra/fields-sage.py +299 -0
  56. sage/tests/books/judson-abstract-algebra/finite-sage.py +108 -0
  57. sage/tests/books/judson-abstract-algebra/galois-sage.py +484 -0
  58. sage/tests/books/judson-abstract-algebra/groups-sage.py +280 -0
  59. sage/tests/books/judson-abstract-algebra/homomorph-sage-exercises.py +65 -0
  60. sage/tests/books/judson-abstract-algebra/homomorph-sage.py +200 -0
  61. sage/tests/books/judson-abstract-algebra/integers-sage.py +197 -0
  62. sage/tests/books/judson-abstract-algebra/isomorph-sage.py +172 -0
  63. sage/tests/books/judson-abstract-algebra/normal-sage.py +133 -0
  64. sage/tests/books/judson-abstract-algebra/permute-sage.py +319 -0
  65. sage/tests/books/judson-abstract-algebra/poly-sage.py +300 -0
  66. sage/tests/books/judson-abstract-algebra/rings-sage.py +413 -0
  67. sage/tests/books/judson-abstract-algebra/sets-sage.py +163 -0
  68. sage/tests/books/judson-abstract-algebra/struct-sage.py +63 -0
  69. sage/tests/books/judson-abstract-algebra/sylow-sage.py +250 -0
  70. sage/tests/books/judson-abstract-algebra/vect-sage-exercises.py +48 -0
  71. sage/tests/books/judson-abstract-algebra/vect-sage.py +211 -0
  72. sage/tests/memcheck/__init__.py +1 -0
  73. sage/tests/memcheck/run_tests.py +25 -0
  74. sage/tests/memcheck/run_tests_in_valgrind.py +36 -0
  75. sage/tests/memcheck/symbolic_expression.py +12 -0
  76. sage/tests/memcheck/verify_no_leak.py +28 -0
  77. sage/tests/all.py +0 -0
  78. {passagemath_repl-10.5.28.data → passagemath_repl-10.5.29.data}/scripts/sage-cachegrind +0 -0
  79. {passagemath_repl-10.5.28.data → passagemath_repl-10.5.29.data}/scripts/sage-callgrind +0 -0
  80. {passagemath_repl-10.5.28.data → passagemath_repl-10.5.29.data}/scripts/sage-cleaner +0 -0
  81. {passagemath_repl-10.5.28.data → passagemath_repl-10.5.29.data}/scripts/sage-coverage +0 -0
  82. {passagemath_repl-10.5.28.data → passagemath_repl-10.5.29.data}/scripts/sage-eval +0 -0
  83. {passagemath_repl-10.5.28.data → passagemath_repl-10.5.29.data}/scripts/sage-fixdoctests +0 -0
  84. {passagemath_repl-10.5.28.data → passagemath_repl-10.5.29.data}/scripts/sage-inline-fortran +0 -0
  85. {passagemath_repl-10.5.28.data → passagemath_repl-10.5.29.data}/scripts/sage-ipynb2rst +0 -0
  86. {passagemath_repl-10.5.28.data → passagemath_repl-10.5.29.data}/scripts/sage-ipython +0 -0
  87. {passagemath_repl-10.5.28.data → passagemath_repl-10.5.29.data}/scripts/sage-massif +0 -0
  88. {passagemath_repl-10.5.28.data → passagemath_repl-10.5.29.data}/scripts/sage-notebook +0 -0
  89. {passagemath_repl-10.5.28.data → passagemath_repl-10.5.29.data}/scripts/sage-omega +0 -0
  90. {passagemath_repl-10.5.28.data → passagemath_repl-10.5.29.data}/scripts/sage-preparse +0 -0
  91. {passagemath_repl-10.5.28.data → passagemath_repl-10.5.29.data}/scripts/sage-run +0 -0
  92. {passagemath_repl-10.5.28.data → passagemath_repl-10.5.29.data}/scripts/sage-run-cython +0 -0
  93. {passagemath_repl-10.5.28.data → passagemath_repl-10.5.29.data}/scripts/sage-runtests +0 -0
  94. {passagemath_repl-10.5.28.data → passagemath_repl-10.5.29.data}/scripts/sage-startuptime.py +0 -0
  95. {passagemath_repl-10.5.28.data → passagemath_repl-10.5.29.data}/scripts/sage-valgrind +0 -0
  96. {passagemath_repl-10.5.28.dist-info → passagemath_repl-10.5.29.dist-info}/WHEEL +0 -0
@@ -0,0 +1,443 @@
1
+ # sage_setup: distribution = sagemath-repl
2
+ """
3
+ This file (./domaines_doctest.sage) was *autogenerated* from ./domaines.tex,
4
+ with sagetex.sty version 2011/05/27 v2.3.1.
5
+ It contains the contents of all the sageexample environments from this file.
6
+ You should be able to doctest this file with:
7
+ sage -t ./domaines_doctest.sage
8
+ It is always safe to delete this file; it is not used in typesetting your
9
+ document.
10
+
11
+ Sage example in ./domaines.tex, line 10::
12
+
13
+ sage: x = var('x')
14
+
15
+ Sage example in ./domaines.tex, line 69::
16
+
17
+ sage: o = 12/35
18
+ sage: type(o)
19
+ <... 'sage.rings.rational.Rational'>
20
+
21
+ Sage example in ./domaines.tex, line 82::
22
+
23
+ sage: type(12/35)
24
+ <... 'sage.rings.rational.Rational'>
25
+
26
+ Sage example in ./domaines.tex, line 131::
27
+
28
+ sage: o = 720
29
+ sage: o.factor()
30
+ 2^4 * 3^2 * 5
31
+
32
+ Sage example in ./domaines.tex, line 142::
33
+
34
+ sage: type(o).factor(o)
35
+ 2^4 * 3^2 * 5
36
+
37
+ Sage example in ./domaines.tex, line 157::
38
+
39
+ sage: 720.factor()
40
+ 2^4 * 3^2 * 5
41
+
42
+ Sage example in ./domaines.tex, line 166::
43
+
44
+ sage: o = 720 / 133
45
+ sage: o.numerator().factor()
46
+ 2^4 * 3^2 * 5
47
+
48
+ Sage example in ./domaines.tex, line 253::
49
+
50
+ sage: 3 * 7
51
+ 21
52
+
53
+ Sage example in ./domaines.tex, line 261::
54
+
55
+ sage: (2/3) * (6/5)
56
+ 4/5
57
+
58
+ Sage example in ./domaines.tex, line 267::
59
+
60
+ sage: (1 + I) * (1 - I)
61
+ 2
62
+
63
+ Sage example in ./domaines.tex, line 274::
64
+
65
+ sage: (x + 2) * (x + 1)
66
+ (x + 2)*(x + 1)
67
+ sage: (x + 1) * (x + 2)
68
+ (x + 2)*(x + 1)
69
+
70
+ Sage example in ./domaines.tex, line 308::
71
+
72
+ sage: def fourth_power(a):
73
+ ....: a = a * a
74
+ ....: a = a * a
75
+ ....: return a
76
+
77
+ Sage example in ./domaines.tex, line 330::
78
+
79
+ sage: fourth_power(2)
80
+ 16
81
+ sage: fourth_power(3/2)
82
+ 81/16
83
+ sage: fourth_power(I)
84
+ 1
85
+ sage: fourth_power(x+1)
86
+ (x + 1)^4
87
+ sage: M = matrix([[0,-1],[1,0]]); M
88
+ [ 0 -1]
89
+ [ 1 0]
90
+ sage: fourth_power(M)
91
+ [1 0]
92
+ [0 1]
93
+
94
+ Sage example in ./domaines.tex, line 375::
95
+
96
+ sage: t = type(5/1); t
97
+ <... 'sage.rings.rational.Rational'>
98
+ sage: t == type(5)
99
+ False
100
+
101
+ Sage example in ./domaines.tex, line 476::
102
+
103
+ sage: a = 5; a
104
+ 5
105
+ sage: a.is_unit()
106
+ False
107
+
108
+ Sage example in ./domaines.tex, line 484::
109
+
110
+ sage: a = 5/1; a
111
+ 5
112
+ sage: a.is_unit()
113
+ True
114
+
115
+ Sage example in ./domaines.tex, line 507::
116
+
117
+ sage: parent(5)
118
+ Integer Ring
119
+ sage: parent(5/1)
120
+ Rational Field
121
+
122
+ Sage example in ./domaines.tex, line 515::
123
+
124
+ sage: ZZ
125
+ Integer Ring
126
+ sage: QQ
127
+ Rational Field
128
+
129
+ Sage example in ./domaines.tex, line 525::
130
+
131
+ sage: QQ(5).parent()
132
+ Rational Field
133
+ sage: ZZ(5/1).parent()
134
+ Integer Ring
135
+ sage: ZZ(1/5)
136
+ Traceback (most recent call last):
137
+ ...
138
+ TypeError: no conversion of this rational to integer
139
+
140
+ Sage example in ./domaines.tex, line 543::
141
+
142
+ sage: ZZ(1), QQ(1), RR(1), CC(1)
143
+ (1, 1, 1.00000000000000, 1.00000000000000)
144
+
145
+ Sage example in ./domaines.tex, line 568::
146
+
147
+ sage: cartesian_product([QQ, QQ])
148
+ The Cartesian product of (Rational Field, Rational Field)
149
+
150
+ Sage example in ./domaines.tex, line 574::
151
+
152
+ sage: ZZ.fraction_field()
153
+ Rational Field
154
+
155
+ Sage example in ./domaines.tex, line 580::
156
+
157
+ sage: ZZ['x']
158
+ Univariate Polynomial Ring in x over Integer Ring
159
+
160
+ Sage example in ./domaines.tex, line 591::
161
+
162
+ sage: Z5 = GF(5); Z5
163
+ Finite Field of size 5
164
+ sage: P = Z5['x']; P
165
+ Univariate Polynomial Ring in x over Finite Field of size 5
166
+ sage: M = MatrixSpace(P, 3, 3); M
167
+ Full MatrixSpace of 3 by 3 dense matrices over
168
+ Univariate Polynomial Ring in x over Finite Field of size 5
169
+
170
+ Sage example in ./domaines.tex, line 602::
171
+
172
+ sage: M.random_element() # random
173
+ [2*x^2 + 3*x + 4 4*x^2 + 2*x + 2 4*x^2 + 2*x]
174
+ [ 3*x 2*x^2 + x + 3 3*x^2 + 4*x]
175
+ [ 4*x^2 + 3 3*x^2 + 2*x + 4 2*x + 4]
176
+
177
+ Sage example in ./domaines.tex, line 697::
178
+
179
+ sage: QQ.category()
180
+ Join of Category of number fields and Category of quotient fields and Category of metric spaces
181
+
182
+ Sage example in ./domaines.tex, line 704::
183
+
184
+ sage: QQ in Fields()
185
+ True
186
+
187
+ Sage example in ./domaines.tex, line 712::
188
+
189
+ sage: QQ in CommutativeAdditiveGroups()
190
+ True
191
+
192
+ Sage example in ./domaines.tex, line 718::
193
+
194
+ sage: QQ['x'] in EuclideanDomains()
195
+ True
196
+
197
+ Sage example in ./domaines.tex, line 859::
198
+
199
+ sage: 5.parent()
200
+ Integer Ring
201
+
202
+ Sage example in ./domaines.tex, line 872::
203
+
204
+ sage: type(factor(4))
205
+ <class 'sage.structure.factorization_integer.IntegerFactorization'>
206
+
207
+ Sage example in ./domaines.tex, line 895::
208
+
209
+ sage: int(5)
210
+ 5
211
+ sage: type(int(5))
212
+ <... 'int'>
213
+
214
+ Sage example in ./domaines.tex, line 909::
215
+
216
+ sage: Integer(5)
217
+ 5
218
+ sage: type(Integer(5))
219
+ <... 'sage.rings.integer.Integer'>
220
+
221
+ Sage example in ./domaines.tex, line 926::
222
+
223
+ sage: factorial(99) / factorial(100) - 1 / 50
224
+ -1/100
225
+
226
+ Sage example in ./domaines.tex, line 974::
227
+
228
+ sage: 72/53 - 5/3 * 2.7
229
+ -3.14150943396227
230
+
231
+ Sage example in ./domaines.tex, line 982::
232
+
233
+ sage: cos(1), cos(1.)
234
+ (cos(1), 0.540302305868140)
235
+
236
+ Sage example in ./domaines.tex, line 1000::
237
+
238
+ sage: pi.n(digits=50) # variant: n(pi,digits=50)
239
+ 3.1415926535897932384626433832795028841971693993751
240
+
241
+ Sage example in ./domaines.tex, line 1020::
242
+
243
+ sage: z = CC(1,2); z.arg()
244
+ 1.10714871779409
245
+
246
+ Sage example in ./domaines.tex, line 1036::
247
+
248
+ sage: I.parent()
249
+ Number Field in I with defining polynomial x^2 + 1 with I = 1*I
250
+
251
+ Sage example in ./domaines.tex, line 1043::
252
+
253
+ sage: (1.+2.*I).parent()
254
+ Complex Field with 53 bits of precision
255
+ sage: (1.+2.*SR(I)).parent()
256
+ Symbolic Ring
257
+
258
+ Sage example in ./domaines.tex, line 1064::
259
+
260
+ sage: z = 3 * exp(I*pi/4)
261
+ sage: z.real(), z.imag(), z.abs().canonicalize_radical()
262
+ (3/2*sqrt(2), 3/2*sqrt(2), 3)
263
+
264
+ Sage example in ./domaines.tex, line 1094::
265
+
266
+ sage: a, b, c = 0, 2, 3
267
+ sage: a == 1 or (b == 2 and c == 3)
268
+ True
269
+
270
+ Sage example in ./domaines.tex, line 1147::
271
+
272
+ sage: x, y = var('x, y')
273
+ sage: bool( (x-y)*(x+y) == x^2-y^2 )
274
+ True
275
+
276
+ Sage example in ./domaines.tex, line 1171::
277
+
278
+ sage: Z4 = IntegerModRing(4); Z4
279
+ Ring of integers modulo 4
280
+ sage: m = Z4(7); m
281
+ 3
282
+
283
+ Sage example in ./domaines.tex, line 1184::
284
+
285
+ sage: 3 * m + 1
286
+ 2
287
+
288
+ Sage example in ./domaines.tex, line 1191::
289
+
290
+ sage: Z3 = GF(3); Z3
291
+ Finite Field of size 3
292
+
293
+ Sage example in ./domaines.tex, line 1243::
294
+
295
+ sage: a = matrix(QQ, [[1,2,3],[2,4,8],[3,9,27]])
296
+ sage: (a^2 + 1) * a^(-1)
297
+ [ -5 13/2 7/3]
298
+ [ 7 1 25/3]
299
+ [ 2 19/2 27]
300
+
301
+ Sage example in ./domaines.tex, line 1259::
302
+
303
+ sage: M = MatrixSpace(QQ,3,3); M
304
+ Full MatrixSpace of 3 by 3 dense matrices over Rational Field
305
+ sage: a = M([[1,2,3],[2,4,8],[3,9,27]])
306
+ sage: (a^2 + 1) * a^(-1)
307
+ [ -5 13/2 7/3]
308
+ [ 7 1 25/3]
309
+ [ 2 19/2 27]
310
+
311
+ Sage example in ./domaines.tex, line 1283::
312
+
313
+ sage: P = ZZ['x']; P
314
+ Univariate Polynomial Ring in x over Integer Ring
315
+ sage: F = P.fraction_field(); F
316
+ Fraction Field of Univariate Polynomial Ring in x over Integer Ring
317
+ sage: p = P(x+1) * P(x); p
318
+ x^2 + x
319
+ sage: p + 1/p
320
+ (x^4 + 2*x^3 + x^2 + 1)/(x^2 + x)
321
+ sage: parent(p + 1/p)
322
+ Fraction Field of Univariate Polynomial Ring in x over Integer Ring
323
+
324
+ Sage example in ./domaines.tex, line 1382::
325
+
326
+ sage: k.<a> = NumberField(x^3 + x + 1); a^3; a^4+3*a
327
+ -a - 1
328
+ -a^2 + 2*a
329
+
330
+ Sage example in ./domaines.tex, line 1416::
331
+
332
+ sage: parent(sin(x))
333
+ Symbolic Ring
334
+
335
+ Sage example in ./domaines.tex, line 1422::
336
+
337
+ sage: SR
338
+ Symbolic Ring
339
+
340
+ Sage example in ./domaines.tex, line 1428::
341
+
342
+ sage: SR.category()
343
+ Category of fields
344
+
345
+ Sage example in ./domaines.tex, line 1482::
346
+
347
+ sage: R = QQ['x1,x2,x3,x4']; R
348
+ Multivariate Polynomial Ring in x1, x2, x3, x4 over Rational Field
349
+ sage: x1, x2, x3, x4 = R.gens()
350
+
351
+ Sage example in ./domaines.tex, line 1489::
352
+
353
+ sage: x1 * (x2 - x3)
354
+ x1*x2 - x1*x3
355
+
356
+ Sage example in ./domaines.tex, line 1496::
357
+
358
+ sage: (x1+x2)*(x1-x2) - (x1^2 - x2^2)
359
+ 0
360
+
361
+ Sage example in ./domaines.tex, line 1509::
362
+
363
+ sage: P = prod( (a-b) for (a,b) in Subsets([x1,x2,x3,x4],2) ); P * P.lc()
364
+ x1^3*x2^2*x3 - x1^2*x2^3*x3 - x1^3*x2*x3^2 + x1*x2^3*x3^2
365
+ + x1^2*x2*x3^3 - x1*x2^2*x3^3 - x1^3*x2^2*x4 + x1^2*x2^3*x4
366
+ + x1^3*x3^2*x4 - x2^3*x3^2*x4 - x1^2*x3^3*x4 + x2^2*x3^3*x4
367
+ + x1^3*x2*x4^2 - x1*x2^3*x4^2 - x1^3*x3*x4^2 + x2^3*x3*x4^2
368
+ + x1*x3^3*x4^2 - x2*x3^3*x4^2 - x1^2*x2*x4^3 + x1*x2^2*x4^3
369
+ + x1^2*x3*x4^3 - x2^2*x3*x4^3 - x1*x3^2*x4^3 + x2*x3^2*x4^3
370
+
371
+ Sage example in ./domaines.tex, line 1531::
372
+
373
+ sage: x1, x2, x3, x4 = SR.var('x1, x2, x3, x4')
374
+ sage: got = prod( (a-b) for (a,b) in Subsets([x1,x2,x3,x4],2) )
375
+ sage: expected1 = -(x1 - x2)*(x1 - x3)*(x1 - x4)*(x2 - x3)*(x2 - x4)*(x3 - x4)
376
+ sage: expected2 = (x1 - x2)*(x1 - x3)*(x1 - x4)*(x2 - x3)*(x2 - x4)*(x3 - x4)
377
+ sage: bool(got == expected1 or got == expected2)
378
+ True
379
+
380
+ Sage example in ./domaines.tex, line 1581::
381
+
382
+ sage: x = var('x')
383
+ sage: p = 54*x^4+36*x^3-102*x^2-72*x-12
384
+ sage: factor(p)
385
+ 6*(x^2 - 2)*(3*x + 1)^2
386
+
387
+ Sage example in ./domaines.tex, line 1616::
388
+
389
+ sage: R = ZZ['x']; R
390
+ Univariate Polynomial Ring in x over Integer Ring
391
+
392
+ Sage example in ./domaines.tex, line 1622::
393
+
394
+ sage: q = R(p); q
395
+ 54*x^4 + 36*x^3 - 102*x^2 - 72*x - 12
396
+
397
+ Sage example in ./domaines.tex, line 1629::
398
+
399
+ sage: parent(q)
400
+ Univariate Polynomial Ring in x over Integer Ring
401
+
402
+ Sage example in ./domaines.tex, line 1635::
403
+
404
+ sage: factor(q)
405
+ 2 * 3 * (3*x + 1)^2 * (x^2 - 2)
406
+
407
+ Sage example in ./domaines.tex, line 1642::
408
+
409
+ sage: R = QQ['x']; R
410
+ Univariate Polynomial Ring in x over Rational Field
411
+ sage: q = R(p); q
412
+ 54*x^4 + 36*x^3 - 102*x^2 - 72*x - 12
413
+ sage: factor(q)
414
+ (54) * (x + 1/3)^2 * (x^2 - 2)
415
+
416
+ Sage example in ./domaines.tex, line 1665::
417
+
418
+ sage: R = ComplexField(16)['x']; R
419
+ Univariate Polynomial Ring in x over Complex Field
420
+ with 16 bits of precision
421
+ sage: q = R(p); q
422
+ 54.00*x^4 + 36.00*x^3 - 102.0*x^2 - 72.00*x - 12.00
423
+ sage: factor(q)
424
+ (54.00) * (x - 1.414) * (x + 0.3333)^2 * (x + 1.414)
425
+
426
+ Sage example in ./domaines.tex, line 1685::
427
+
428
+ sage: R = QQ[sqrt(2)]['x']; R
429
+ Univariate Polynomial Ring in x over Number Field in sqrt2 with defining polynomial x^2 - 2 with sqrt2 = 1.414213562373095?
430
+ sage: q = R(p); q
431
+ 54*x^4 + 36*x^3 - 102*x^2 - 72*x - 12
432
+ sage: factor(q)
433
+ (54) * (x - sqrt2) * (x + sqrt2) * (x + 1/3)^2
434
+
435
+ Sage example in ./domaines.tex, line 1698::
436
+
437
+ sage: R = GF(5)['x']; R
438
+ Univariate Polynomial Ring in x over Finite Field of size 5
439
+ sage: q = R(p); q
440
+ 4*x^4 + x^3 + 3*x^2 + 3*x + 3
441
+ sage: factor(q)
442
+ (4) * (x + 2)^2 * (x^2 + 3)
443
+ """