[sage-support] Lexicographic ordering in Sage

2011-06-29 Thread Santanu Sarkar
I have a set S of monomials in x1, x2, x3, x4 like S=[x3x4,x2x3,x1x4,x4,x3,x1x2,x1,x2,1]. I want to rearrange S in Lexicographic ordering like S=[1,x1,x2,x1x2,x3,x2x3,x4,x1x4, x3x4]. -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email

[sage-support] Failure to import Sage-4.7.ova into VirtualBox under Win7

2011-06-29 Thread Greg Grunberg
I installed the newly-released VirtualBox 4.0.10 on my 2-years-old Windows 7 machine, which has 8 GB of RAM. I then downloaded Sage-4.7.ova (dated 2011-06-22) and verified its MD5 sum against that in the file md5sums.txt . But upon attempting to import the .ova file into VirtualBox, I received th

[sage-support] Re: drawing a graph that has only some of its edges oriented

2011-06-29 Thread davidp
My solution at the moment is to plot the graph setting save_pos=true. Using the vertex positions determined by the plot, I create arrows for the oriented edges. I then plot the original plot of the graph plus the arrows. Dave On Jun 29, 7:18 pm, davidp wrote: > Hi, > > I have found the need to

[sage-support] Re: Expand complex exponential using eulers formula

2011-06-29 Thread ObsessiveMathsFreak
This is pretty infuriating. sage: forget() sage: assume(theta,'real') sage: exp(I*theta).real() e^(-imag_part(theta))*cos(real_part(theta)) -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.

[sage-support] drawing a graph that has only some of its edges oriented

2011-06-29 Thread davidp
Hi, I have found the need to think about "partially oriented" graphs: some edges have an orientation and others do not. It would be natural to draw these with arrows for directed edges and lines for undirected edges. What is the easiest way to do this with Sage? Thanks, Dave -- To post to th

[sage-support] Re: solve() exception when variable names contain brackets

2011-06-29 Thread Volker Braun
Thats http://trac.sagemath.org/sage_trac/ticket/7496 and its scheduled for sage-4.7.2 -- 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://grou

[sage-support] Expand complex exponential using eulers formula

2011-06-29 Thread ObsessiveMathsFreak
I have complex formulas involving several occurances of complex exponentials. e.g. e^(2*I*theta), e^(3*I*theta) I would like to find the real part of the expression (there are several variables), but when I do so, the expression becomes unwieldy with a lot of terms like sin(-2*real_part(theta)) sh

[sage-support] Re: solve() exception when variable names contain brackets

2011-06-29 Thread Jason Grout
On 6/29/11 3:22 PM, Michael Orlitzky wrote: This is probably just a case of "don't do that," but I thought I'd check: sage: c = [ var('c[0]') ] sage: system = c[0]*x == 1 sage: solve(system, c[0]) ... TypeError: unable to make sense of Maxima expression '[c[0]==1/x]' in Sag

[sage-support] solve() exception when variable names contain brackets

2011-06-29 Thread Michael Orlitzky
This is probably just a case of "don't do that," but I thought I'd check: sage: c = [ var('c[0]') ] sage: system = c[0]*x == 1 sage: solve(system, c[0]) ... TypeError: unable to make sense of Maxima expression '[c[0]==1/x]' in Sage -- To post to this group, send email to sage-supp

[sage-support] Weird sgn() behavior

2011-06-29 Thread Michael Orlitzky
So, this is what I'm actually trying to integrate: sage: n(integrate(x * sgn(x^2 - 1/4), x, -1, 0)) 0.500 But, the function within sgn() has only one root on (-1, 0), sage: (x^2 - 1/4).roots() [(-1/2, 1), (1/2, 1)] We can check the value of sgn() on both subintervals: sag

[sage-support] Re: which part of sage do I need to cite?

2011-06-29 Thread zsharon
Thanks. I was able to find websites for most of them, so I suppose I'll just note them in the acknowledgements and list the websites in the references. MPFR's website wasn't loading yesterday, but I have some time before I submit the final copy of my thesis, so hopefully I can find a proper refer

[sage-support] Setting up a sage chroot environment

2011-06-29 Thread Andrew Calcutt
Hi Everyone, I have been trying to set up a sage chroot environment. I have documented the steps I have taken here http://www.techidiots.net/notes/sage-notebook-chroot-ubuntu I have the chroot environment created, and sage compiled inside of it. If I run sage as my "server" user without dchroot

[sage-support] Subring of the polynomial ring

2011-06-29 Thread Johannes
Hi list how can i create a subring of the polynomial ring? I need to construct the rings like this: CC[x^3,y^3,z^3] or CC[x^3, y^3, z^3, xy^2, xz^2, yz^2, x^2y, x^2z, y^2z] how can I do this in sage? I tried this: C. = CC['x^3,y^3,z^3']

[sage-support] Re: Highlight code

2011-06-29 Thread Jason Grout
On 6/29/11 4:32 AM, projetmbc wrote: Hello, it could be a new feature very usefull to see highlighting codes so as to find easily some syntax errors. There are easy tio use jaavscript libraries like CodeMirror.net/ and highlight.js

[sage-support] Highlight code

2011-06-29 Thread projetmbc
Hello, it could be a new feature very usefull to see highlighting codes so as to find easily some syntax errors. There are easy tio use jaavscript libraries like CodeMirror.net/and highlight.js which do that. Best regards.

[sage-support] Re: General (Fast) Discrete Fourier transform in Sage (not just for double-dense vectors)?

2011-06-29 Thread Simon King
Thank you! -- 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] Modular Symbol Projection Function

2011-06-29 Thread Jay
Hi, I am trying to do some calculations with decomposition factors of modular symbol spaces, for some of which I intend to use the projection function. My problem is that most of the time, when I try to define a projection map onto a modular symbol subspace, I get an error. Sometimes the error s