On 10/16/2013 12:45 AM, kcrisman wrote:
sage: 5 % 3
2
sage: 5. % 3.
-1.00
I view this as a problem - was trying to construct the Weierstrass
function for my students
http://sagecell.sagemath.org/?q=mufyfu
and it wouldn't plot right until I changed %2 to %2., but now I get
this. O
Trying to format the output of a matrix, B. Sage reports: type 'print
obj.str()' to see all of the entries)
But print B.str() doesn't give me any format options. Is there a way control
output like a regular print statement?
Thanks,
-d
--
You received this message because you are subscribed to
sage: 5 % 3
2
sage: 5. % 3.
-1.00
I view this as a problem - was trying to construct the Weierstrass function
for my students
http://sagecell.sagemath.org/?q=mufyfu
and it wouldn't plot right until I changed %2 to %2., but now I get this.
Or is there some mathematical reason to
***
IPython post-mortem report
{'commit_hash': '858d539',
'commit_source': 'installation',
'default_encoding': 'UTF-8',
'ipython_path':
'/Users/jyt/src/sage-5.12/local/lib/python2.7/site-packages/IPython',
'ipython_version':
I hope this helps:
sage: A = matrix(GF(2), [
[1, 1, 1, 0],
[0, 1, 1, 0],
[1, 0, 0, 1],
[0, 1, 0, 1]])
sage: b = vector(GF(2), [0, 1, 1, 0])
sage: A \ b
(1, 0, 1, 0)
The "x" is indeed in GF(2):
sage: x = A \ b
sage: x.parent()
Vector space of dimension 4 over Finite Field of size
Hi list,
I'm trying to use sage to solve linear equation systems in GF(2). For
example, say I have a matrix A describing the LES:
A :=
[ 1, 1, 1, 0 ]
[ 0, 1, 1, 0 ]
[1, 0, 0, 1]
[0, 1, 0, 1]
and a RHS:
b :=
[0, 1, 1, 0]^T
and would like to get the solution in GF(2):
s = [1, 0, 1, 0]^T
How