|
|
|
|
Symbolic Ring Symbolic Ring |
Finite Field of size 7 Finite Field of size 7 |
[0, 1, 2, 3, 4, 5, 6] [0, 1, 2, 3, 4, 5, 6] |
Real Double Field Real Double Field |
|
|
[ -0.821876689273126*chris2^2 - 0.337570915811116*chris2*william2 - 0.445009814043026*william2^2 - 0.933733757961343*chris2 - 0.328938818266539 -0.901307772747002*chris2^2 - 0.343913151855248*chris2*william2 - 0.955029600171170*william2^2 - 0.613473476443475*chris2 + 0.817179944585997*william2] [0.692008619961593*chris2^2 - 0.666991104945709*chris2*william2 - 0.0950703419495393*william2^2 + 0.261926742846123*chris2 - 0.801579599176361*william2 0.143659682615950*chris2^2 - 0.221007018170083*william2^2 - 0.162863097602838*chris2 - 0.617597598526627*william2 - 0.553651224948270] [ -0.821876689273126*chris2^2 - 0.337570915811116*chris2*william2 - 0.445009814043026*william2^2 - 0.933733757961343*chris2 - 0.328938818266539 -0.901307772747002*chris2^2 - 0.343913151855248*chris2*william2 - 0.955029600171170*william2^2 - 0.613473476443475*chris2 + 0.817179944585997*william2] [0.692008619961593*chris2^2 - 0.666991104945709*chris2*william2 - 0.0950703419495393*william2^2 + 0.261926742846123*chris2 - 0.801579599176361*william2 0.143659682615950*chris2^2 - 0.221007018170083*william2^2 - 0.162863097602838*chris2 - 0.617597598526627*william2 - 0.553651224948270] |
chris2^3 + 3.00000000000000*chris2^2*william2 + 3.00000000000000*chris2*william2^2 + william2^3 chris2^3 + 3.00000000000000*chris2^2*william2 + 3.00000000000000*chris2*william2^2 + william2^3 |
Multivariate Polynomial Ring in chris, william over Real Field with 53 bits of precision Multivariate Polynomial Ring in chris, william over Real Field with 53 bits of precision |
chris chris |
william william |
(chris, william) (chris, william) |
chris chris |
Traceback (click to the left of this block for traceback) ... NameError: name 'chris' is not defined Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "_sage_input_92.py", line 10, in <module>
exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("Y2hyaXM="),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))
File "", line 1, in <module>
File "/private/var/folders/4z/h5m3q9b94zs641jlbxj79sv00000gn/T/tmp1kumAa/___code___.py", line 2, in <module>
exec compile(u'chris
File "", line 1, in <module>
NameError: name 'chris' is not defined
|
[1 2] [3 1] [2 3] [1 2] [3 1] [2 3] |
Finite Field of size 7 Finite Field of size 7 |
[ 1 2 3 4 5 6 7 8] [ 9 10 11 12 13 14 15 16] [17 18 19 20 21 22 23 24] [25 26 27 28 29 30 31 32] [33 34 35 36 37 38 39 40] [41 42 43 44 45 46 47 48] [49 50 51 52 53 54 55 56] [57 58 59 60 61 62 63 64] [ 1 2 3 4 5 6 7 8] [ 9 10 11 12 13 14 15 16] [17 18 19 20 21 22 23 24] [25 26 27 28 29 30 31 32] [33 34 35 36 37 38 39 40] [41 42 43 44 45 46 47 48] [49 50 51 52 53 54 55 56] [57 58 59 60 61 62 63 64] |
Integer Ring Integer Ring |
<type 'sage.modules.vector_integer_dense.Vector_integer_dense'> <type 'sage.modules.vector_integer_dense.Vector_integer_dense'> |
(2, 2, 1) (2, 2, 1) |
(4/5, 2, 7) (4/5, 2, 7) |
1341/25 1341/25 |
(2.80000000000000, 7.00000000000000, 24.5000000000000) (2.80000000000000, 7.00000000000000, 24.5000000000000) |
[ 1 2 3] [4/5 2 7] [ 1 1 1] [ 1 2 3] [4/5 2 7] [ 1 1 1] |
[ 1 2 3 4 5 6 7 8] [ 9 10 11 12 13 14 15 16] [17 18 19 20 21 22 23 24] [25 26 27 28 29 30 31 32] [33 34 35 36 37 38 39 40] [41 42 43 44 45 46 47 48] [49 50 51 52 53 54 55 56] [57 58 59 60 61 62 63 64] [ 1 2 3 4 5 6 7 8] [ 9 10 11 12 13 14 15 16] [17 18 19 20 21 22 23 24] [25 26 27 28 29 30 31 32] [33 34 35 36 37 38 39 40] [41 42 43 44 45 46 47 48] [49 50 51 52 53 54 55 56] [57 58 59 60 61 62 63 64] |
[ 2 4 6 8] [10 12 14 16] [18 20 22 24] [26 28 30 32] [34 36 38 40] [42 44 46 48] [50 52 54 56] [58 60 62 64] [ 2 4 6 8] [10 12 14 16] [18 20 22 24] [26 28 30 32] [34 36 38 40] [42 44 46 48] [50 52 54 56] [58 60 62 64] |
2 2 |
|
|
|
|
(0, 1, 2) (0, 1, 2) |
Traceback (click to the left of this block for traceback) ... ValueError: matrix is immutable; please change a copy instead (i.e., use copy(M) to change a copy of M). Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "_sage_input_142.py", line 10, in <module>
exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("QVswLDFdID0gOTIwOTA4MzQ="),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))
File "", line 1, in <module>
File "/private/var/folders/4z/h5m3q9b94zs641jlbxj79sv00000gn/T/tmpHwLvwE/___code___.py", line 3, in <module>
exec compile(u'A[_sage_const_0 ,_sage_const_1 ] = _sage_const_92090834
File "", line 1, in <module>
File "matrix0.pyx", line 1339, in sage.matrix.matrix0.Matrix.__setitem__ (sage/matrix/matrix0.c:5846)
File "matrix0.pyx", line 404, in sage.matrix.matrix0.Matrix.check_mutability (sage/matrix/matrix0.c:3884)
ValueError: matrix is immutable; please change a copy instead (i.e., use copy(M) to change a copy of M).
|
(1, 2012, 3, 4, 5, 6, 7, 8) (1, 2012, 3, 4, 5, 6, 7, 8) |
Traceback (click to the left of this block for traceback) ... ValueError: vector is immutable; please change a copy instead (use copy()) Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "_sage_input_139.py", line 10, in <module>
exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("dlsxXSA9IDE5MzkzOQ=="),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))
File "", line 1, in <module>
File "/private/var/folders/4z/h5m3q9b94zs641jlbxj79sv00000gn/T/tmpv4ZPc_/___code___.py", line 3, in <module>
exec compile(u'v[_sage_const_1 ] = _sage_const_193939
File "", line 1, in <module>
File "vector_integer_dense.pyx", line 157, in sage.modules.vector_integer_dense.Vector_integer_dense.__setitem__ (sage/modules/vector_integer_dense.c:3008)
ValueError: vector is immutable; please change a copy instead (use copy())
|
Traceback (click to the left of this block for traceback) ... ValueError: vector is immutable; please change a copy instead (use copy()) Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "_sage_input_136.py", line 10, in <module>
exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("QVswXVsxXSA9IDE5MzkzOQ=="),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))
File "", line 1, in <module>
File "/private/var/folders/4z/h5m3q9b94zs641jlbxj79sv00000gn/T/tmp3B0USk/___code___.py", line 3, in <module>
exec compile(u'A[_sage_const_0 ][_sage_const_1 ] = _sage_const_193939
File "", line 1, in <module>
File "vector_integer_dense.pyx", line 157, in sage.modules.vector_integer_dense.Vector_integer_dense.__setitem__ (sage/modules/vector_integer_dense.c:3008)
ValueError: vector is immutable; please change a copy instead (use copy())
|
[ 1 2012 3 4 5 6 7 8] [ 9 10 11 12 13 14 15 16] [ 17 18 19 20 21 22 23 24] [ 25 26 27 28 29 30 31 32] [ 33 34 35 36 37 38 39 40] [ 41 42 43 44 45 46 47 48] [ 49 50 51 52 53 54 55 56] [ 57 58 59 60 61 62 63 64] [ 1 2012 3 4 5 6 7 8] [ 9 10 11 12 13 14 15 16] [ 17 18 19 20 21 22 23 24] [ 25 26 27 28 29 30 31 32] [ 33 34 35 36 37 38 39 40] [ 41 42 43 44 45 46 47 48] [ 49 50 51 52 53 54 55 56] [ 57 58 59 60 61 62 63 64] |
[10061/2515 6039/2012 12079/2012] [ 47/5 27666/2515 117/5] [ 14/5 6037/2012 11] [10061/2515 6039/2012 12079/2012] [ 47/5 27666/2515 117/5] [ 14/5 6037/2012 11] |
|
|
[1 0 0] [0 1 0] [0 0 1] [1 0 0] [0 1 0] [0 0 1] |
|
\left(\begin{array}{rrr}
1 & \frac{1}{2012} & 3 \\
\frac{4}{5} & 2 & 7 \\
1 & 1 & 1
\end{array}\right)
\left(\begin{array}{rrr}
1 & \frac{1}{2012} & 3 \\
\frac{4}{5} & 2 & 7 \\
1 & 1 & 1
\end{array}\right)
|
x^3 - 4*x^2 - 12576/2515*x + 17297/2012 x^3 - 4*x^2 - 12576/2515*x + 17297/2012 |
-17297/2012 -17297/2012 |
(34185/17297, 116696/86485, -28166/86485) (34185/17297, 116696/86485, -28166/86485) |
(-38228/86485, 8046/17297, 92529/86485) (-38228/86485, 8046/17297, 92529/86485) |
|
Very powerful!
Time: CPU 2.68 s, Wall: 1.86 s Time: CPU 2.68 s, Wall: 1.86 s |
1340022 1340022 |
|
|
Explain some of the examples in the docstring below:
|
|
|
|