[sage-support] Re: Possible Bug in Matrix Nullity Method

2014-03-06 Thread Kuai Yu
I see. Thanks for your replies! -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to s

[sage-support] Possible Bug in Matrix Nullity Method

2014-03-05 Thread Kuai Yu
Rank-nullity theorem states that the rank and the nullity of a matrix add up to the number of columns of a matrix. In the following example, the matrix defined over R has 5 columns but its rank and nullity add up to 4. Is this a bug? sage: m = matrix(RR,[[1,-1,2,0,3],[2,-1,3,-1,2],[3,0,3,0,6

[sage-support] Possible bug in list.remove()

2013-08-03 Thread Kuai Yu
Let L be a list. Then if I do for i in L: if (bool): L.remove(i) sage is supposed to remove all such i's in L. But sage is not doing what I expected: sage: M [['1', '1', '(', '(', ')'], ['1', '1', '(', ')', '('], ['1', '(', '1', '(', ')'], ['1', '(', '1', ')', '('], ['1', '(', '(', '1

[sage-support] Re: Unexpected EOF while looking for matching `''?

2013-06-02 Thread Kuai Yu
I changed my hostname and now sage works fine! Thanks a lot! On Sunday, June 2, 2013 1:41:11 PM UTC-7, Volker Braun wrote: > > In any case, as a workaround you can start Sage as > > HOSTNAME="KuaiYu" sage > > from the command line. > > > On Sunday, June 2,

[sage-support] Re: Unexpected EOF while looking for matching `''?

2013-06-02 Thread Kuai Yu
e 2, 2013 1:26:36 PM UTC-7, Volker Braun wrote: > > socket.gethostname() returns illegal hostname, thats great. Apple, what > the heck! > > On Sunday, June 2, 2013 9:24:01 PM UTC+1, Kuai Yu wrote: >> >> sage: os.environ['KuaiYu's Pro'] >> > > No,

[sage-support] Re: Unexpected EOF while looking for matching `''?

2013-06-02 Thread Kuai Yu
hostname() > sage: os.environ['HOSTNAME'] > > > > On Sunday, June 2, 2013 9:05:32 PM UTC+1, Kuai Yu wrote: >> >> l"/Users/kuaiyu/.sage/temp/KuaiYu's Pro/1387" >> > -- You received this message because you are subscribed to the Goo

[sage-support] Re: Unexpected EOF while looking for matching `''?

2013-06-02 Thread Kuai Yu
ur hostname contains an apostrophe, thats totally not allowed ;) This > ends up in the directory path and our shell script doesn't escape it > properly. I wonder where it is coming from, can you post the output of both > > sage: import socket; socket.gethostname() > sage: os.en

[sage-support] Re: Unexpected EOF while looking for matching `''?

2013-06-02 Thread Kuai Yu
() > sage: sage.env.DOT_SAGE > sage: sage.misc.misc.SAGE_TMP > > > On Saturday, June 1, 2013 9:20:58 PM UTC+1, Kuai Yu wrote: >> >> I'm new to Sage. >> When trying to plot a wheelgraph on 5 vertices, I got the following error >> message: >> sh: -c:

[sage-support] Re: Unexpected EOF while looking for matching `''?

2013-06-02 Thread Kuai Yu
GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin12) On Sunday, June 2, 2013 2:16:46 AM UTC-7, Dima Pasechnik wrote: > > On 2013-06-02, Kuai Yu > wrote: > > --=_Part_2049_32398057.1370161704048 > > Content-Type: text/plain; charset=ISO-8859-1 > >

[sage-support] Re: Unexpected EOF while looking for matching `''?

2013-06-02 Thread Kuai Yu
I'm running sage on Mac version 10.8.3 mountain lion. My sage version is 5.8. Is there an easy way to tell whether the shell is the cause of the problem? On Sunday, June 2, 2013 12:35:04 AM UTC-7, Dima Pasechnik wrote: > > On 2013-06-01, Kuai

[sage-support] Unexpected EOF while looking for matching `''?

2013-06-01 Thread Kuai Yu
I'm new to Sage. When trying to plot a wheelgraph on 5 vertices, I got the following error message: sh: -c: line 0: unexpected EOF while looking for matching `'' sh: -c: line 1: syntax error: unexpected end of file Here is my code for plotting: sage: G = graphs.WheelGraph(4) sage: G Wheel graph: