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