[sage-support] Sbox object S.interpolation_polynomial()

2017-06-23 Thread Eileen Ee
Hi Sage Support, I tested the Sbox function S.interpolation_polynomial() on the AES S-box, and got a polynomial that I wasn't expecting. I was expecting the AES S-box polynomial: 0x5*(x^254) + 0x9*(x^253) + 0xf9*(x^251) + 0x25*(x^247) + 0xf4*(x^239) + (x^223) + 0xb5*(x^191) + 0x8f*(x^127) + 0x6

[sage-support] How to ask users to input a matrix

2014-01-02 Thread Eileen Ee
Hi everyone, I have a program that requires some user inputs. I know raw_input([...]) can be used for string inputs and int(raw_input([...])) for integer inputs but I also need a matrix input from users. Is there anyone who can help me with this? I thought of asking the user to input a list, f

Re: [sage-support] numpy.count_nonzero

2013-11-18 Thread Eileen Ee
t; > sage: M = random_matrix(GF(2),4,5) > sage: len([a for a in M.list() if a]) > 12 > > Here M.list() is a list of all the entries, we select the nonzero ones > and count. > > John Cremona > > On 15 November 2013 08:25, Eileen Ee > > wrote: > > Hi ev

[sage-support] numpy.count_nonzero

2013-11-15 Thread Eileen Ee
Hi everyone, I want to count the number of non-zero entries in a matrix but I can't find a Sage command to do this. Instead, I found a NumPy command numpy.count_nonzero to do it. I tested it in the online Sage Cell server: https://sagecell.sagemath.org/ The code goes like this: import n

[sage-support] Re: Installation of Sage in Linux

2013-10-29 Thread Eileen Ee
; > > On Thursday, October 24, 2013 5:17:18 PM UTC+1, P Purkayastha wrote: >> >> On 10/24/2013 03:41 PM, Eileen Ee wrote: >> > Hi, >> > >> > In the midst of my Sage installation, it paused and showed "Input >> archive name or "."

[sage-support] Installation of Sage in Linux

2013-10-24 Thread Eileen Ee
Hi, In the midst of my Sage installation, it paused and showed "Input archive name or "." to quit pax". I keyed in "." and it continued to process. At the end of the installation, it showed "build succeeded" and "Build finished". Can I confirm that my Sage installation is complete and has succ