[sage-support] Plotting: axes with ticks but with no labels
I would like to be able to plot a function, e.g. plot(sin), that has axes and ticks on the axes but that does not have labels for the ticks. I understand that I might be able to do this using a ticker formatter, perhaps also, by directly using matplotlib, but I do not know exactly how to go about doing this. Any help would be much appreciated. Jeff Webb -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Ideal and Groebner Basis
Suppose in an array A[100], I have 100 polynomials over R.x,y,z=QQ[] I first want to construct an ideal generated by this polynomial. Then I want to find the Groebner Basis. How this can be done in Sage? When we have three polynomials f1,f2,f3 we use the following. I=(f1,f2,f3)*R B=I.groebner_basis() -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Ideal and Groebner Basis
Hi, On 28 Jan., 15:19, Santanu Sarkar sarkar.santanu@gmail.com wrote: Suppose in an array A[100], I have 100 polynomials over R.x,y,z=QQ[] I first want to construct an ideal generated by this polynomial. Then I want to find the Groebner Basis. How this can be done in Sage? When we have three polynomials f1,f2,f3 we use the following. I=(f1,f2,f3)*R B=I.groebner_basis() What do you mean by array A[100]? Do you mean a list A that is formed by 100 polynomials? Then of course it is sage: I = A*R sage: B = I.groebner_basis() Cheers, Simon -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Plotting: axes with ticks but with no labels
On Fri, Jan 28, 2011 at 9:08 PM, Jeff wrote: I would like to be able to plot a function, e.g. plot(sin), that has axes and ticks on the axes but that does not have labels for the ticks. I understand that I might be able to do this using a ticker formatter, perhaps also, by directly using matplotlib, but I do not know exactly how to go about doing this. There may be a simpler way, but: import matplotlib p = plot(sin) p.show(tick_formatter=(matplotlib.ticker.NullFormatter(), matplotlib.ticker.NullFormatter())) worked for me. The repetition is to make sure that both x and y tick labels are turned off. Doug -- Department of Earth Sciences University of Hong Kong -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: Re : [sage-support] sage still does not build on Fedora 14
I first tried make again, without reinstalling anything. It seemed to complete and sage works properly as far as I can tell.If make finishes without a final error message, can I conclude that the build is ok? I next installed the new atlas spkg and did make again. No error messages. Keith On Jan 27, 1:29 pm, Colombel Bruno brunocolom...@yahoo.fr wrote: --- En date de : Jeu 27.1.11, keith.bri...@bt.com keith.bri...@bt.com a écrit : - I had a similar problem and Volker Braun wrote : Can you try the new atlas spkg at http://trac.sagemath.org/sage_trac/ticket/10226 and let us know if it improves anything? Cheers,Volker It was then working (just replace atlas.spkg in ~/sage/spkg/standart by that one) Good luck Bruno PS : I work on fedora14 64 bits -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: bug with simplify_radical
With maxima 5.23.2: (%i1) radcan((2*x^2/(x^2+1)-1)/sqrt(-4*x^2/(x^2+1)^2+1) ); (%o1) 1 radcan(((2*x^2-x^2-1)/(x^2+1))/sqrt((x^2-1)^2/(x^2+1)^2)); 2 x - 1 (%o2) ! 2! ! x - 1! radcan(((x^2-1)*x/(x^2+1)^2-x/(x^2+1))/sqrt(-(x^2-1)^2/(x^2 + 1)^2 + 1) ); x (%o3) - --- 2 (x + 1) abs(x) same results Thus, where reporting this bug? On 27 jan, 22:41, kcrisman kcris...@gmail.com wrote: Hmm. Maxima 5.22.1http://maxima.sourceforge.net using Lisp ECL 10.4.1 Distributed under the GNU Public License. See the file COPYING. Dedicated to the memory of William Schelter. The function bug_report() provides bug reporting information. (%i1) radcan((2*x^2/(x^2+1)-1)/sqrt(-4*x^2/(x^2+1)^2+1) ); (%o1) 1 (%i2) radcan(((2*x^2-x^2-1)/(x^2+1))/sqrt((x^2-1)^2/(x^2+1)^2)); 2 x - 1 (%o2) ! 2 ! !x - 1! (%i3) radcan(((x^2-1)*x/(x^2+1)^2-x/(x^2+1))/sqrt(-(x^2-1)^2/(x^2 + 1)^2 + 1) ); x (%o3) - --- 2 (x + 1) abs(x) I don't have access to a current Maxima, but if someone could check this out in 5.23.2 or whatever the latest is, that would be really great. Then we'd have to file a bug report there. Certainly the behavior should be similar for these. - kcrisman -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Plotting: axes with ticks but with no labels
On 1/28/11 7:20 AM, kcrisman wrote: On Jan 28, 9:52 am, D. S. McNeildsm...@gmail.com wrote: On Fri, Jan 28, 2011 at 9:08 PM, Jeff wrote: I would like to be able to plot a function, e.g. plot(sin), that has axes and ticks on the axes but that does not have labels for the ticks. I understand that I might be able to do this using a ticker formatter, perhaps also, by directly using matplotlib, but I do not know exactly how to go about doing this. There may be a simpler way, but: import matplotlib p = plot(sin) p.show(tick_formatter=(matplotlib.ticker.NullFormatter(), matplotlib.ticker.NullFormatter())) worked for me. The repetition is to make sure that both x and y tick labels are turned off. Yes, if you look at http://www.sagemath.org/doc/reference/sage/plot/plot.html and search for tick_formatter, you will see documentation for this. Do you think it would be worth having the null formatter as a specified option? The string null could easily have the default be the null formatter - that would be easy to add. I think the string 'none' might be a better fit for matplotlib conventions, for what it's worth. Jason -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: bug with simplify_radical
Thank you! This is now reported to Maxima at http://sourceforge.net/tracker/?func=detailaid=3167163group_id=4933atid=104933 On Jan 28, 10:38 am, Loïc xl...@free.fr wrote: With maxima 5.23.2: (%i1) radcan((2*x^2/(x^2+1)-1)/sqrt(-4*x^2/(x^2+1)^2+1) ); (%o1) 1 radcan(((2*x^2-x^2-1)/(x^2+1))/sqrt((x^2-1)^2/(x^2+1)^2)); 2 x - 1 (%o2) ! 2 ! ! x - 1! radcan(((x^2-1)*x/(x^2+1)^2-x/(x^2+1))/sqrt(-(x^2-1)^2/(x^2 + 1)^2 + 1) ); x (%o3) - --- 2 (x + 1) abs(x) same results Thus, where reporting this bug? On 27 jan, 22:41, kcrisman kcris...@gmail.com wrote: Hmm. Maxima 5.22.1http://maxima.sourceforge.net using Lisp ECL 10.4.1 Distributed under the GNU Public License. See the file COPYING. Dedicated to the memory of William Schelter. The function bug_report() provides bug reporting information. (%i1) radcan((2*x^2/(x^2+1)-1)/sqrt(-4*x^2/(x^2+1)^2+1) ); (%o1) 1 (%i2) radcan(((2*x^2-x^2-1)/(x^2+1))/sqrt((x^2-1)^2/(x^2+1)^2)); 2 x - 1 (%o2) ! 2 ! !x - 1! (%i3) radcan(((x^2-1)*x/(x^2+1)^2-x/(x^2+1))/sqrt(-(x^2-1)^2/(x^2 + 1)^2 + 1) ); x (%o3) - --- 2 (x + 1) abs(x) I don't have access to a current Maxima, but if someone could check this out in 5.23.2 or whatever the latest is, that would be really great. Then we'd have to file a bug report there. Certainly the behavior should be similar for these. - kcrisman -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Plotting: axes with ticks but with no labels
On Jan 28, 11:08 am, Jason Grout jason-s...@creativetrax.com wrote: On 1/28/11 7:20 AM, kcrisman wrote: On Jan 28, 9:52 am, D. S. McNeildsm...@gmail.com wrote: On Fri, Jan 28, 2011 at 9:08 PM, Jeff wrote: I would like to be able to plot a function, e.g. plot(sin), that has axes and ticks on the axes but that does not have labels for the ticks. I understand that I might be able to do this using a ticker formatter, perhaps also, by directly using matplotlib, but I do not know exactly how to go about doing this. There may be a simpler way, but: import matplotlib p = plot(sin) p.show(tick_formatter=(matplotlib.ticker.NullFormatter(), matplotlib.ticker.NullFormatter())) worked for me. The repetition is to make sure that both x and y tick labels are turned off. Yes, if you look athttp://www.sagemath.org/doc/reference/sage/plot/plot.html and search for tick_formatter, you will see documentation for this. Do you think it would be worth having the null formatter as a specified option? The string null could easily have the default be the null formatter - that would be easy to add. I think the string 'none' might be a better fit for matplotlib conventions, for what it's worth. But the Python None is already reserved for the default formatter, which I suppose makes sense since 'no formatting' means 'no special formatting' to most of us... while null is special. So with 'none' versus None I see a lot of potential for confusion. Or? - kcrisman -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Plotting: axes with ticks but with no labels
On 1/28/11 8:23 AM, kcrisman wrote: On Jan 28, 11:08 am, Jason Groutjason-s...@creativetrax.com wrote: On 1/28/11 7:20 AM, kcrisman wrote: On Jan 28, 9:52 am, D. S. McNeildsm...@gmail.comwrote: On Fri, Jan 28, 2011 at 9:08 PM, Jeff wrote: I would like to be able to plot a function, e.g. plot(sin), that has axes and ticks on the axes but that does not have labels for the ticks. I understand that I might be able to do this using a ticker formatter, perhaps also, by directly using matplotlib, but I do not know exactly how to go about doing this. There may be a simpler way, but: import matplotlib p = plot(sin) p.show(tick_formatter=(matplotlib.ticker.NullFormatter(), matplotlib.ticker.NullFormatter())) worked for me. The repetition is to make sure that both x and y tick labels are turned off. Yes, if you look athttp://www.sagemath.org/doc/reference/sage/plot/plot.html and search for tick_formatter, you will see documentation for this. Do you think it would be worth having the null formatter as a specified option? The string null could easily have the default be the null formatter - that would be easy to add. I think the string 'none' might be a better fit for matplotlib conventions, for what it's worth. But the Python None is already reserved for the default formatter, which I suppose makes sense since 'no formatting' means 'no special formatting' to most of us... while null is special. So with 'none' versus None I see a lot of potential for confusion. Or? Yes, I do see a possibly confusing point. Advantages are: 1. once people realize that None means default, then the confusion is lessened. 2. 'none' works for colors and the like since that's the matplotlib convention. Actually, (2) doesn't work in Sage, since apparently to_mpl_color doesn't recognize 'none'. That's a bug in my opinion, as there is no way to, say, draw a circle with a fill but no surrounding edge. I'd say 'null' is less intuitive than 'none' (again, once the user realizes that None actually means default). Thanks, Jason -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Plotting: axes with ticks but with no labels
7:20 AM, kcrisman wrote: On Jan 28, 9:52 am, D. S. McNeildsm...@gmail.com wrote: On Fri, Jan 28, 2011 at 9:08 PM, Jeff wrote: I would like to be able to plot a function, e.g. plot(sin), that has axes and ticks on the axes but that does not have labels for the ticks. I understand that I might be able to do this using a ticker formatter, perhaps also, by directly using matplotlib, but I do not know exactly how to go about doing this. There may be a simpler way, but: import matplotlib p = plot(sin) p.show(tick_formatter=(matplotlib.ticker.NullFormatter(), matplotlib.ticker.NullFormatter())) worked for me. The repetition is to make sure that both x and y tick labels are turned off. Yes, if you look athttp://www.sagemath.org/doc/reference/sage/plot/plot.html and search for tick_formatter, you will see documentation for this. Do you think it would be worth having the null formatter as a specified option? The string null could easily have the default be the null formatter - that would be easy to add. I think the string 'none' might be a better fit for matplotlib conventions, for what it's worth. But the Python None is already reserved for the default formatter, which I suppose makes sense since 'no formatting' means 'no special formatting' to most of us... while null is special. So with 'none' versus None I see a lot of potential for confusion. Or? Yes, I do see a possibly confusing point. Advantages are: 1. once people realize that None means default, then the confusion is lessened. 2. 'none' works for colors and the like since that's the matplotlib convention. Actually, (2) doesn't work in Sage, since apparently to_mpl_color doesn't recognize 'none'. That's a bug in my opinion, as there is no way to, say, draw a circle with a fill but no surrounding edge. I'd say 'null' is less intuitive than 'none' (again, once the user realizes that None actually means default). Sounds like this will be useful, anyway. Can you open a ticket where we can discuss this further? Maybe we can support both options... Thanks for raising this point, Jeff! - kcrisman -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Ideal and Groebner Basis
Of course, with 100 polynomials, any computer algebra system might cry uncle when trying to compute the Groebner basis... depends on the system. regards john perry On Jan 28, 8:34 am, Simon King simon.k...@uni-jena.de wrote: Hi, On 28 Jan., 15:19, Santanu Sarkar sarkar.santanu@gmail.com wrote: Suppose in an array A[100], I have 100 polynomials over R.x,y,z=QQ[] I first want to construct an ideal generated by this polynomial. Then I want to find the Groebner Basis. How this can be done in Sage? When we have three polynomials f1,f2,f3 we use the following. I=(f1,f2,f3)*R B=I.groebner_basis() What do you mean by array A[100]? Do you mean a list A that is formed by 100 polynomials? Then of course it is sage: I = A*R sage: B = I.groebner_basis() Cheers, Simon -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Re: Ideal and Groebner Basis
Thank you. This approach works well. On 28 January 2011 20:04, Simon King simon.k...@uni-jena.de wrote: Hi, On 28 Jan., 15:19, Santanu Sarkar sarkar.santanu@gmail.com wrote: Suppose in an array A[100], I have 100 polynomials over R.x,y,z=QQ[] I first want to construct an ideal generated by this polynomial. Then I want to find the Groebner Basis. How this can be done in Sage? When we have three polynomials f1,f2,f3 we use the following. I=(f1,f2,f3)*R B=I.groebner_basis() What do you mean by array A[100]? Do you mean a list A that is formed by 100 polynomials? Then of course it is sage: I = A*R sage: B = I.groebner_basis() Cheers, Simon -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org