[sage-support] Re: __mod__ is not consistent between integers and reals

2013-10-15 Thread P Purkayastha
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

[sage-support] Matrix printing

2013-10-15 Thread Dan Aldrich
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-support] __mod__ is not consistent between integers and reals

2013-10-15 Thread kcrisman
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

[sage-support] Sage Crash Report

2013-10-15 Thread Jean-Yves Thibon
*** 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':

[sage-support] Re: Solving linear equation systems in GF(2)

2013-10-15 Thread Harald Schilly
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

[sage-support] Solving linear equation systems in GF(2)

2013-10-15 Thread Johannes Bauer
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