[sage-support] Re: How to debug sage core dump
On 2014-03-05, jorges wrote: > Hi, > I am doing some symbolic calculus stuff with sage, basically solving some > 4th order differential equations. At some point, I substitute some > parameters in order to get numerical results. It seems "subs" is choking on > one particular (big) expression. What could be going wrong? How can I debug > it? > > Here's a link to a minimal example which core dumps sage 6.1.1: > http://pastebin.com/BFLycz59 could you also provide the output you get? > > Thanks, > > jorge > -- 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 sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
[sage-support] Re: Possible Bug in Matrix Nullity Method
On 2014-03-06, Kuai Yu wrote: > > > 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? no; these kinds of theorems come in pairs, in the sense that you can consider acting by your matrix on the right, or on the left. There are m.right_nullity() and m.left_nullity() sage: m = matrix(RR,[[1,-1,2,0,3],[2,-1,3,-1,2],[3,0,3,0,6],[6,0,6,-1,9]]) sage: m.left_nullity() 1 sage: m.right_nullity() 2 Is there something wrong in documentation regarding them? -- 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 sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
[sage-support] Re: Possible Bug in Matrix Nullity Method
It is not a bug, but a consequence of a different convention. In Sage, nullity means left nullity, i.e. the dimension of the left kernel. In this example, m.nullity() + m.rank() = m.nrows(). For the more common right nullity (resp. kernel), use m.right_nullity() (resp. m.right_kernel()) instead. Indeed, in the example m.right_nullity() returns 2. Peter 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],[6,0,6,-1,9]]) > > sage: m.nullity() > > 1 > > sage: m.ncols() > > 5 > > sage: m.rank() > > 3 > -- 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 sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
[sage-support] Re: Possible Bug in Matrix Nullity Method
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 sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
[sage-support] Re: Possible Bug in Matrix Nullity Method
Hi Dima, Is there something wrong in documentation regarding them? > Possibly: the documentation of m.nullity() says Return the (left) nullity of this matrix, which is the dimension of the (left) kernel of this matrix acting from the right on row vectors. This should probably be "acting from the LEFT on row vectors"; I think it is even better (less confusing) to delete this part of the sentence. Peter -- 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 sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
Re: [sage-support] Re: Possible Bug in Matrix Nullity Method
On 6 March 2014 08:59, Peter Bruin wrote: > Hi Dima, > > >> Is there something wrong in documentation regarding them? > > > Possibly: the documentation of m.nullity() says > > Return the (left) nullity of this matrix, which is the dimension of > the (left) kernel of this matrix acting from the right on row > vectors. > > This should probably be "acting from the LEFT on row vectors"; I think it is > even better (less confusing) to delete this part of the sentence. Surely not? For the left nullity the vectors are row vectors on the left, but the matrix is acting on the right (unless I got out of bed on the wrong side this norming). John > > Peter > > -- > 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 sage-support@googlegroups.com. > Visit this group at http://groups.google.com/group/sage-support. > For more options, visit https://groups.google.com/groups/opt_out. -- 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 sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
[sage-support] Re: Polynomial rings and homogenization
Hi Peter, Thanks for your suggestion, it's something I hadn't considered specifying for all of my variables. I managed to avoid the '_first_ngens' by restructuring the code, and your comment about making sure that everything is actually an integer saved me a lot of time fixing the next error. Tristan -- 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 sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
[sage-support] Re: How to debug sage core dump
On Thursday, 6 March 2014 05:35:26 UTC-3, Dima Pasechnik wrote: > > > could you also provide the output you get? > > Sorry, here's the output from sage. I was working initally within the notebook, but after getting messages that a subprocess had died, I tried with the command line, copying the contents of the notebook to a test.sage file and then doing sage: runfile test.sage I had several possible candidates lines commented out, so I started executing them one by one until I arrived to the one below. Note that the large expression in the script I posted ( http://pastebin.com/BFLycz59 ) corresponds to S22[0], which is the output of the solve command for a 4th order polynomial sage: ca2 = S22[0].subs(**params) ./sage: line 134: 12266 Segmentation fault (core dumped) "$SAGE_ROOT/src/bin/sage" "$@" Could you replicate the issue with the example I provided? -- 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 sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
Re: [sage-support] Re: Possible Bug in Matrix Nullity Method
Hello John, Surely not? For the left nullity the vectors are row vectors on the > left, but the matrix is acting on the right (unless I got out of bed > on the wrong side this norming). > Yes, I now realise that I read the phrase in a "left-associative way", interpreting "kernel of this matrix acting on the right on row vectors" as being about the _kernel_ acting on row vectors. I was also thinking of the fact that the kernel acts from the left via row operations on the matrix to its right. After re-reading it I see that it makes more sense if you read it right-associatively. (I could be somewhat left-right disoriented having just travelled from the UK to the continent.) Anyway, given that this documentation will be read more closely by people who are less familiar with things like left kernels, I still find it a potentially confusing sentence. Peter -- 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 sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
[sage-support] Re: How to debug sage core dump
I was able to make the substitution, first in cloud.sagemath and then locally oon my PC. The trick was to simplify the expression before doing the substitution. I should have probably tried that from the beginning. I would expect, however, the computation to take longer instead of segfaulting sage. BTW, I have just left the script running in cloud.sagemath. At least it is not segfaulting straight away, but after 10 minutes or so it is still processing. I'll report back when I get the results -- 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 sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
[sage-support] jmol on notebook blocked in firefox
Dear all, I am making a presentation of Sage for undergraduate math students next week, and when trying some old example I see that I cannot make a 3D graph interactive anymore. The first error is that the java plugin is "out of date and vulnerable". I've installed the latest plugin (from http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html, namely Java Plug-in 1.7.0_25) and the problem persists. (I had tried open-jdk and icedtea in the past, and they seemed not to work well with sage/jmol, at least at the time). I'm running sage-6.1.1, on 64-bit up to date Debian Unstable (Linux), with Firefox 27 and Chromium 32. If I try to allow (by clicking on "run once"), I get a message "Your security setting have blocked an application from running with an out-of-date or expired version of Java." BTW, it works fine from the command line. But is there a way to run it from the notebook? Thanks, Luis -- 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 sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
Re: [sage-support] Re: How to debug sage core dump
On 2014-03-06 15:18, jorges wrote: I was able to make the substitution, first in cloud.sagemath and then locally oon my PC. The trick was to simplify the expression before doing the substitution. I should have probably tried that from the beginning. I would expect, however, the computation to take longer instead of segfaulting sage. BTW, I have just left the script running in cloud.sagemath. At least it is not segfaulting straight away, but after 10 minutes or so it is still processing. I'll report back when I get the results The original problem looks very much like a stack overflow. -- 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 sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
[sage-support] Re: jmol on notebook blocked in firefox
On Thursday, March 6, 2014 9:48:28 AM UTC-5, Luis Finotti wrote: > > Dear all, > > I am making a presentation of Sage for undergraduate math students next > week, and when trying some old example I see that I cannot make a 3D graph > interactive anymore. > > The first error is that the java plugin is "out of date and vulnerable". > I've installed the latest plugin (from > http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html, > > namely Java Plug-in 1.7.0_25) and the problem persists. (I had tried > open-jdk and icedtea in the past, and they seemed not to work well with > sage/jmol, at least at the time). > > I'm running sage-6.1.1, on 64-bit up to date Debian Unstable (Linux), with > Firefox 27 and Chromium 32. > > If I try to allow (by clicking on "run once"), I get a message "Your > security setting have blocked an application from running with an > out-of-date or expired version of Java." > With those security settings, I'm not sure there is. This is a real problem we've been encountering, also with respect to the certificates. In fact, I downgraded my Java on my computer just so I can keep running the applets in class for now. This isn't only an issue with Jmol, by the way - I have students encountering the same issue with some Geogebra-type applets embedded inside of WeBWorK. - kcrisman -- 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 sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
[sage-support] Best strategy for exporting/importing big lists or tuples to human-readable files?
Dear all, I kindly ask for your feedback on the following. My work involves the use of big lists that are of two kinds: a) lists of integers b) lists of lists of integers The contents of those lists come from quite long computations and I need to reuse those tuples often, so it is necessary to store those lists and retrieve them later, instead of recomputing all the elements everytime. It would also be great if they are stored in a way such that they are human-readable; the way I think of it, every element would be in another line, so that when I see them in my text editor, I can see the row number next to the element, and thus know the index of the element in the list. What do you recommend I should do for importing/exporting those lists to human-readable files? Any particular function or format (e.g. txt, csv, etc) that I should use? Any feedback would be greatly appreciated. George -- 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 sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
[sage-support] Sage 6.1.1 broken?
Hey there, I just installed the Sage 6.1.1 for Ubuntu 12.04_64 but every attemp to start it will yield ./sage/local/bin/python: 2: ./sage/local/bin/python: Syntax error: Unterminated quoted string Also, the .get directory is contained in the archive :-? -- 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 sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
[sage-support] Importing extra libraries on SageMathCloud such as qutip
I was wondering if there is a process for importing libraries that do not seem to be preexisting on the cloud into IPython sessions. In my case, I would like to do the following import: > from qutip import * For context about what this library is: qutip is a library that makes the use of Dirac like notation much easier (i.e. to compute the inner product on <-y| and |+z> just define the quantum objects Smy and Spz and do Smy.dag () * Spz) -- 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 sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
[sage-support] legends on plots
Hi, I try to add legend on a plot (created below) but doesn't seem to have any success. There was no error, the legends just won't show up. var('x y') xrange = (x,0,5) yrange = (y,0,5) f1 = implicit_plot(x**2-4*x+y**2==0,xrange,yrange,color='red',linewidth=5,legend_label='x^2 - 4x + y^2 == 0') f2 = implicit_plot(x*y==1,xrange,yrange,linewidth=5,legend_label='x*y==1') result = f1+f2 result.legend(True) result.show(legend_loc='upper right',frame=True) -- 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 sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
[sage-support] Re: legends on plots
I have similar issues when running your code. However, the same code works if you do not do implicit plotting: var('x y') xrange = (x,0,5) yrange = (y,0,5) f1 = plot(x**2,xrange,color='red',legend_label='x^2 - 4x + y^2 == 0') f2 = plot(x,xrange,legend_label='x*y==1') result = f1+f2 result.legend(True) result.show(legend_loc='upper right',frame=True) To me this implies that the problem is with implicit plotting. On Thursday, March 6, 2014 11:02:04 AM UTC-8, tvn wrote: > > Hi, I try to add legend on a plot (created below) but doesn't seem to have > any success. There was no error, the legends just won't show up. > > > var('x y') > xrange = (x,0,5) > yrange = (y,0,5) > f1 = > implicit_plot(x**2-4*x+y**2==0,xrange,yrange,color='red',linewidth=5,legend_label='x^2 > > - 4x + y^2 == 0') > f2 = implicit_plot(x*y==1,xrange,yrange,linewidth=5,legend_label='x*y==1') > result = f1+f2 > result.legend(True) > result.show(legend_loc='upper right',frame=True) > > > -- 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 sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
[sage-support] Re: jmol on notebook blocked in firefox
On Thursday, March 6, 2014 11:47:38 AM UTC-5, kcrisman wrote: > > > > On Thursday, March 6, 2014 9:48:28 AM UTC-5, Luis Finotti wrote: >> >> Dear all, >> >> I am making a presentation of Sage for undergraduate math students next >> week, and when trying some old example I see that I cannot make a 3D graph >> interactive anymore. >> >> The first error is that the java plugin is "out of date and vulnerable". >> I've installed the latest plugin (from >> http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html, >> >> namely Java Plug-in 1.7.0_25) and the problem persists. (I had tried >> open-jdk and icedtea in the past, and they seemed not to work well with >> sage/jmol, at least at the time). >> >> I'm running sage-6.1.1, on 64-bit up to date Debian Unstable (Linux), >> with Firefox 27 and Chromium 32. >> >> If I try to allow (by clicking on "run once"), I get a message "Your >> security setting have blocked an application from running with an >> out-of-date or expired version of Java." >> > > > With those security settings, I'm not sure there is. This is a real > problem we've been encountering, also with respect to the certificates. In > fact, I downgraded my Java on my computer just so I can keep running the > applets in class for now. This isn't only an issue with Jmol, by the way - > I have students encountering the same issue with some Geogebra-type applets > embedded inside of WeBWorK. > > - kcrisman > Thanks for the reply! That is too bad, as it will make it seem less user friendly to new users... Is it possible to tell the notebook to open jmol in its own window (like if it were called from the command line)? Thanks again, Luis -- 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 sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
[sage-support] Re: legends on plots
On Thursday, March 6, 2014 2:24:00 PM UTC-5, Liam Dalton wrote: > > I have similar issues when running your code. However, the same code works > if you do not do implicit plotting: > > var('x y') > xrange = (x,0,5) > yrange = (y,0,5) > f1 = plot(x**2,xrange,color='red',legend_label='x^2 - 4x + y^2 == 0') > f2 = plot(x,xrange,legend_label='x*y==1') > result = f1+f2 > result.legend(True) > result.show(legend_loc='upper right',frame=True) > > To me this implies that the problem is with implicit plotting. > >> >> Correct - I've been playing with this for the past few minutes, and contour plots (of which implicit plots are a subset) simply don't do this, even though there is code in the ContourPlot class to handle legends! http://git.sagemath.org/sage.git/tree/src/sage/plot/contour_plot.py#n191 for implicit plot situation. var('x y') P = contour_plot(x^2+y^2==1,(x,-1,1),(y,-1,1),plot_points=150, contours=(0,0), fill=False, cmap=["blue"],legend_label='test') print P.legend() P.legend(True) print P.legend() print P[0].options()['legend_label'] show(P) shows this. Not only this, but the legend is inexplicably not set to True. I have a feeling that we need to do what we do in plot/disk.py or something; my guess (only a guess) is that the matplotlib thing that does contour plots (contour) only accepts labels directly for the individual contours, which is http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.clabel In fact, http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.contour seems to confirm that we shouldn't be trying to label contour plots with legends. (Which makes sense, since they have their own labeling mechanism). However, for implicit plots, this might cause a problem. A workaround like at the bottom of http://matplotlib.org/examples/pylab_examples/contourf_hatching.html might work. -- 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 sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
[sage-support] Re: legends on plots
This is now http://trac.sagemath.org/ticket/15903 -- 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 sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
Re: [sage-support] Re: legends on plots
legend would work on plot but I can't run my code on plot (it won't take the variable y) plot(x**2-4*x+y**2==0,xrange,yrange,color='red',linewidth=5,legend_label='x^2 - 4x + y^2 == 0') Traceback (click to the left of this block for traceback) ... ValueError: free variable: y Vu, On Thu, Mar 6, 2014 at 12:24 PM, Liam Dalton wrote: > I have similar issues when running your code. However, the same code works > if you do not do implicit plotting: > > var('x y') > xrange = (x,0,5) > yrange = (y,0,5) > f1 = plot(x**2,xrange,color='red',legend_label='x^2 - 4x + y^2 == 0') > f2 = plot(x,xrange,legend_label='x*y==1') > result = f1+f2 > result.legend(True) > result.show(legend_loc='upper right',frame=True) > > To me this implies that the problem is with implicit plotting. > > > On Thursday, March 6, 2014 11:02:04 AM UTC-8, tvn wrote: >> >> Hi, I try to add legend on a plot (created below) but doesn't seem to >> have any success. There was no error, the legends just won't show up. >> >> >> var('x y') >> xrange = (x,0,5) >> yrange = (y,0,5) >> f1 = >> implicit_plot(x**2-4*x+y**2==0,xrange,yrange,color='red',linewidth=5,legend_label='x^2 >> - 4x + y^2 == 0') >> f2 = implicit_plot(x*y==1,xrange,yrange,linewidth=5,legend_ >> label='x*y==1') >> result = f1+f2 >> result.legend(True) >> result.show(legend_loc='upper right',frame=True) >> >> >> -- > You received this message because you are subscribed to a topic in the > Google Groups "sage-support" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/sage-support/YLKxkk1H04g/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > sage-support+unsubscr...@googlegroups.com. > To post to this group, send email to sage-support@googlegroups.com. > Visit this group at http://groups.google.com/group/sage-support. > For more options, visit https://groups.google.com/groups/opt_out. > -- 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 sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
Re: [sage-support] Re: How to debug sage core dump
On Thursday, 6 March 2014 13:30:13 UTC-3, Jeroen Demeyer wrote: The original problem looks very much like a stack overflow. cloud.sagemath didn't give any specific message, but the spinning wheel was still going some 6 hours after the substitution command started. I tried with the trace() command, but I got tired of stepping and when I hit continue, I got another segmentation fault: ipdb> c ./sage: line 134: 31629 Segmentation fault (core dumped) "$SAGE_ROOT/src/bin/sage" "$@ I guess I should open a bug about this. -- 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 sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
[sage-support] Re: Best strategy for exporting/importing big lists or tuples to human-readable files?
I finally decided to use the csv goodies of python as described here: http://docs.python.org/2/library/csv.html On Thursday, March 6, 2014 11:56:22 AM UTC-5, geo909 wrote: > > Dear all, > > I kindly ask for your feedback on the following. > > My work involves the use of big lists that are of two kinds: > a) lists of integers > b) lists of lists of integers > > The contents of those lists come from quite long computations and I need > to reuse those tuples often, > so it is necessary to store those lists and retrieve them later, instead > of recomputing all the elements > everytime. It would also be great if they are stored in a way such that > they are human-readable; the > way I think of it, every element would be in another line, so that when I > see them in my text editor, I > can see the row number next to the element, and thus know the index of the > element in the list. > > What do you recommend I should do for importing/exporting those lists to > human-readable files? Any > particular function or format (e.g. txt, csv, etc) that I should use? > > Any feedback would be greatly appreciated. > > George > > -- 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 sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
[sage-support] Re: Sage 6.1.1 broken?
On 2014-03-06, Leo Arnold wrote: > I just installed the Sage 6.1.1 for Ubuntu 12.04_64 but every attemp to start > it will yield > > ./sage/local/bin/python: 2: ./sage/local/bin/python: Syntax error: > Unterminated quoted string Please check that the md5 sum of the downloaded tar file matches the one published on the webpage you download it from. > > Also, the .get directory is contained in the archive :-? do you mean .git/ directory? > -- 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 sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
Re: [sage-support] Re: Best strategy for exporting/importing big lists or tuples to human-readable files?
Hello, if you want to work with long table-array, it could be useful to use numpy. 2014-03-06 22:19 GMT+01:00 geo909 : > I finally decided to use the csv goodies of python as described here: > http://docs.python.org/2/library/csv.html > > > On Thursday, March 6, 2014 11:56:22 AM UTC-5, geo909 wrote: >> >> Dear all, >> >> I kindly ask for your feedback on the following. >> >> My work involves the use of big lists that are of two kinds: >> a) lists of integers >> b) lists of lists of integers >> >> The contents of those lists come from quite long computations and I need >> to reuse those tuples often, >> so it is necessary to store those lists and retrieve them later, instead >> of recomputing all the elements >> everytime. It would also be great if they are stored in a way such that >> they are human-readable; the >> way I think of it, every element would be in another line, so that when I >> see them in my text editor, I >> can see the row number next to the element, and thus know the index of >> the element in the list. >> >> What do you recommend I should do for importing/exporting those lists to >> human-readable files? Any >> particular function or format (e.g. txt, csv, etc) that I should use? >> >> Any feedback would be greatly appreciated. >> >> George >> >> -- > 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 sage-support@googlegroups.com. > Visit this group at http://groups.google.com/group/sage-support. > For more options, visit https://groups.google.com/groups/opt_out. > -- 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 sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
[sage-support] BinaryReedMullerCode does not work
Hi, HammingCode is working, but I tried: C = BinaryReedMullerCode(4,2) Traceback (most recent call last): File "", line 1, in File "_sage_input_2.py", line 10, in exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("QyA9IEJpbmFyeVJlZWRNdWxsZXJDb2RlKDQsMik="),globals())+"\\n"); execfile(os.path.abspath("___code___.py")) File "", line 1, in File "/tmp/tmplaVR0H/___code___.py", line 3, in exec compile(u'C = BinaryReedMullerCode(_sage_const_4 ,_sage_const_2 ) File "", line 1, in File "/usr/local/sage/sage-5.3-linux-64bit-ubuntu_10.04.4_lts-x86_64-Linux/local/lib/python2.7/site-packages/sage/coding/guava.py", line 73, in BinaryReedMullerCode gap.eval("C:=ReedMullerCode("+str(r)+", "+str(k)+")") File "/usr/local/sage/sage-5.3-linux-64bit-ubuntu_10.04.4_lts-x86_64-Linux/local/lib/python2.7/site-packages/sage/interfaces/gap.py", line 376, in eval result = Expect.eval(self, input_line, **kwds) File "/usr/local/sage/sage-5.3-linux-64bit-ubuntu_10.04.4_lts-x86_64-Linux/local/lib/python2.7/site-packages/sage/interfaces/expect.py", line 1242, in eval for L in code.split('\n') if L != '']) File "/usr/local/sage/sage-5.3-linux-64bit-ubuntu_10.04.4_lts-x86_64-Linux/local/lib/python2.7/site-packages/sage/interfaces/gap.py", line 577, in _eval_line raise RuntimeError, message RuntimeError: Gap produced error output Variable: 'ReedMullerCode' must have a value executing C:=ReedMullerCode(4, 2); What could I do? Thanks, Barbara -- 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 sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
Re: [sage-support] BinaryReedMullerCode does not work
On Thu, Mar 6, 2014 at 5:27 PM, Barbara Sánta wrote: > Hi, HammingCode is working, but I tried: > > C = BinaryReedMullerCode(4,2) > > Traceback (most recent call last): > File "", line 1, in > File "_sage_input_2.py", line 10, in > exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 > -*-\\n" + > _support_.preparse_worksheet_cell(base64.b64decode("QyA9IEJpbmFyeVJlZWRNdWxsZXJDb2RlKDQsMik="),globals())+"\\n"); > execfile(os.path.abspath("___code___.py")) > File "", line 1, in > > File "/tmp/tmplaVR0H/___code___.py", line 3, in > exec compile(u'C = BinaryReedMullerCode(_sage_const_4 ,_sage_const_2 ) > File "", line 1, in > > File > "/usr/local/sage/sage-5.3-linux-64bit-ubuntu_10.04.4_lts-x86_64-Linux/local/lib/python2.7/site-packages/sage/coding/guava.py", > line 73, in BinaryReedMullerCode It is in guava.py, which means it needs the GAP package Guava to be installed. Hope this helps. > gap.eval("C:=ReedMullerCode("+str(r)+", "+str(k)+")") > File > "/usr/local/sage/sage-5.3-linux-64bit-ubuntu_10.04.4_lts-x86_64-Linux/local/lib/python2.7/site-packages/sage/interfaces/gap.py", > line 376, in eval > result = Expect.eval(self, input_line, **kwds) > File > "/usr/local/sage/sage-5.3-linux-64bit-ubuntu_10.04.4_lts-x86_64-Linux/local/lib/python2.7/site-packages/sage/interfaces/expect.py", > line 1242, in eval > for L in code.split('\n') if L != '']) > File > "/usr/local/sage/sage-5.3-linux-64bit-ubuntu_10.04.4_lts-x86_64-Linux/local/lib/python2.7/site-packages/sage/interfaces/gap.py", > line 577, in _eval_line > raise RuntimeError, message > RuntimeError: Gap produced error output > Variable: 'ReedMullerCode' must have a value > > >executing C:=ReedMullerCode(4, 2); > > > What could I do? > > Thanks, > Barbara > > -- > 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 sage-support@googlegroups.com. > Visit this group at http://groups.google.com/group/sage-support. > For more options, visit https://groups.google.com/groups/opt_out. -- 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 sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
Re: [sage-support] Sage 6.1.1 broken?
Hi How did you install? Source, binary, or ppa? Regards, Jan On 6 March 2014 20:43, Leo Arnold wrote: > Hey there, > > I just installed the Sage 6.1.1 for Ubuntu 12.04_64 but every attemp to > start it will yield > > ./sage/local/bin/python: 2: ./sage/local/bin/python: Syntax error: > Unterminated quoted string > > Also, the .get directory is contained in the archive :-? > > -- > 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 sage-support@googlegroups.com. > Visit this group at http://groups.google.com/group/sage-support. > For more options, visit https://groups.google.com/groups/opt_out. > -- .~. /V\ Jan Groenewald /( )\www.aims.ac.za ^^-^^ -- 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 sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
[sage-support] Re: jmol on notebook blocked in firefox
This should work: sage.plot.plot.EMBEDDED_MODE=False # show plot in jmol/other window sphere().show() sage.plot.plot.EMBEDDED_MODE=True # show other plots in notebook again plot(x) On Friday, March 7, 2014 3:45:58 AM UTC+8, Luis Finotti wrote: > > >> Thanks for the reply! > > That is too bad, as it will make it seem less user friendly to new users... > > Is it possible to tell the notebook to open jmol in its own window (like > if it were called from the command line)? > > Thanks again, > > Luis > -- 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 sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
[sage-support] where are all 6.11 version sagenb server list?
there are a lists at sagewiki ,but too old,half year age -- 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 sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.