[sage-support] Re: exponential and simplify

2010-02-01 Thread Simon
Thank you both for your replies. It's interesting that in Andrej's examples, the e^x and exp(x) form do not yield the same result, since in maxima (which I know next to nothing about) we have (%i1) declare(m, integer); (%o1)done (%i2) rectform(exp(2*m*%i*%pi)); (%o2

[sage-support] Re: Listing all k-minors of a matrix?

2010-02-01 Thread Jason Grout
On 02/01/2010 08:12 AM, javier wrote: You can see the source of the "minors" method using sage: M.minors?? (you need to have defined M beforehand). By browsing at that source one can easily find the general way of doing it: sage: A = Matrix(QQ, 3, [1,2,3,4,5,6,7,8,9]) sage: [A.matrix_from_row

Re: [sage-support] Profiling code in Sage

2010-02-01 Thread Minh Nguyen
Hi Stefan, On Tue, Feb 2, 2010 at 1:07 PM, Stefan wrote: > Can anyone point me in the right direction for profiling a Python > function in Sage? Here's an example on using prun from within Sage: sage: %prun next_prime(10) 4 function calls in 0.000 CPU seconds Ordered by: interna

[sage-support] Re: Profiling code in Sage

2010-02-01 Thread Stefan
Ah! Running cp.run('Problem3A()') did the job. Nevermind! On Feb 1, 9:07 pm, Stefan wrote: > Hi guys, > > After searching through the newsgroup for any posts on profiling code > in Sage, I thought I'd make a post asking about what possible methods > are available. > > (I did come across a post t

[sage-support] Profiling code in Sage

2010-02-01 Thread Stefan
Hi guys, After searching through the newsgroup for any posts on profiling code in Sage, I thought I'd make a post asking about what possible methods are available. (I did come across a post that utilized 'prun', but I couldn't figure out how to get it to work.) Anyway, after running the code: i

[sage-support] Re: installation problems for Sage binary on Mac

2010-02-01 Thread bazzoola
I am seeing the same problem I have a 32-bit core duo CPU. a i386 32-bit kernel and I downloaded sage-4.3.1-OSX-10.6-i386-Darwin.dmg but whenever I run sage I get the infamous bad cpu type error On Jan 27, 8:22 pm, Andri Egilsson wrote: > Update: No, the 10.5 version does not appear to work (Bad

[sage-support] Re: exponential and simplify

2010-02-01 Thread kcrisman
> > In Maxima you would use rectform to convert the expression from polar > to rect form: > > sage: int._maxima_().rectform() > 0 > sage: e^(i*2*pi*m)._maxima_().rectform() > e^(2*I*pi*m) > sage: exp(i*2*pi*m)._maxima_().rectform() > 1 Thanks, Andrej, that is very helpful. Am I correct in assumin

[sage-support] Re: Sage in calculators

2010-02-01 Thread Harald Schilly
On Feb 1, 11:57 pm, Jaap Spies wrote: > > How do you do that? Can't find python on my android :( I don't have android, but i think 1. http://code.google.com/p/android-scripting/ 2. http://ondrejcertik.blogspot.com/2009/08/sympy-on-google-phone.html if it works -> blog it ;) H -- To post to th

[sage-support] Re: [sage-edu] dSage, where for art thou, dSage?

2010-02-01 Thread Minh Nguyen
Hi, On Tue, Feb 2, 2010 at 11:01 AM, wrote: > OK, let me get this straight - if I download SAGE binaries (or source files > to compile) to install locally on my linux boxes on my LAN, I can use > parallel python to run a cluster? I'm not sure about that. See the website of Parallel Python [1] f

Re: [sage-support] Re: Sage in calculators

2010-02-01 Thread Jaap Spies
Harald Schilly wrote: On Feb 1, 4:59 am, Cal Armstrong wrote: I would rather see it ported to a device that students already have, their smartphones, instead of saddling them with the purchase of another device. I just want to add that it is already possible to run sympy (pure python) inside

[sage-support] Re: exponential and simplify

2010-02-01 Thread andrejv
On Feb 1, 4:47 pm, Simon wrote: > Hi, this is hopefully an easy question: > > As a simple exercise, I'm trying to show that \int_0^{2\pi} e^{i (m-n) > x}dx = 2\pi\delta_{mn} for integer m, n. > Here's how I did it: > > sage: var('m,n'); w = SR.wild(0); > sage: assume(n, 'integer');assume(m, 'integ

[sage-support] Re: [sage-edu] dSage, where for art thou, dSage?

2010-02-01 Thread Minh Nguyen
Hi, On Tue, Feb 2, 2010 at 9:04 AM, wrote: > BTW, how does the @parallel decorator > work? Is this part of pp? See the file SAGE_ROOT/devel/sage-main/sage/parallel/decorate.py especially the function parallel() in that module. -- Regards Minh Van Nguyen -- To post to this group, send e

Re: [sage-support] Re: sage blog

2010-02-01 Thread calcpage
OOPs, I'm sorry, I am a total noob wrt rss. How do I enable this? HTH, A. Jorge Garcia http://calcpage.tripod.com Teacher & Professor Applied Mathematics, Physics & Computer Science Baldwin Senior High School & Nassau Community College -- To post to this group, send email to sage-support@googl

[sage-support] Re: [sage-edu] dSage, where for art thou, dSage?

2010-02-01 Thread Minh Nguyen
Hi, On Tue, Feb 2, 2010 at 9:00 AM, wrote: > Oh, OK, so to use dSage I need to install an spkg locally. Yes, if there's an spkg for dsage. However, note that dsage is not in any of the spkg repositories. It's not in the standard repository [1], nor the optional repository [2], nor the experimen

Re: [sage-support] Re: sage blog

2010-02-01 Thread calcpage
OK, thanx for trying. Regards, A. Jorge Garcia http://calcpage.tripod.com Teacher & Professor Applied Mathematics, Physics & Computer Science Baldwin Senior High School & Nassau Community College -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this grou

Re: [sage-support] Sage in calculators

2010-02-01 Thread calcpage
I was uin my kid's iPod Touch the other day to edit my sage notebook files at www.sagenb.org using safari no problem! HTH, A. Jorge Garcia http://calcpage.tripod.com Teacher & Professor Applied Mathematics, Physics & Computer Science Baldwin Senior High School & Nassau Community College -- To

[sage-support] Singular-nc_algebra-question

2010-02-01 Thread Kakaz
I try to define some noncommutative structures in Sage, but I do not know exactly how. I found this thread: http://groups.google.com/group/sage-support/browse_thread/thread/73ea537d657a3654/ebdc76a97a0b1ea6?lnk=gst&q=noncommutative#ebdc76a97a0b1ea6 and I check examples, but unfortunately I do not k

[sage-support] can't build SAGE 4.3.1 for linux-powerpc32

2010-02-01 Thread Douglas Mencken
I have a problem with building SAGE 4.3.1 for linux-powerpc32: checking lex output file root... configure: error: cannot find output from flex; giving up My distro is Fedora 12 Constantine, I have flex 2.5.35 installed by package management system (Package flex-2.5.35-7.fc12.ppc already installed

Re: [sage-support] Cython Installation Problem with suse 10.1

2010-02-01 Thread Robert Bradshaw
On Jan 31, 2010, at 2:23 PM, ulrich.t...@hsnr.de wrote: Hi, I got a problem with the insatllation of sage-4.3.1. I am using Suse 10.1 on a Dell Latitude Laptop. Excerpt from the install.log: building 'Cython.Compiler.Parsing' extension gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict

[sage-support] Re: Runtime error: Unable to start gap (as user "nobody" with xgrid)

2010-02-01 Thread jplab
Greetings, On 1 fév, 14:44, Minh Nguyen wrote: > I think that is expected. The bug at > > http://trac.sagemath.org/sage_trac/ticket/7095 > > only affects Mac OS X 10.6. You should have no trouble using Sage 4.3 > on Mac OS X 10.5. Oh, I see! Great! Thanks again! JP Labbé -- To post to this

Re: [sage-support] Re: Runtime error: Unable to start gap (as user "nobody" with xgrid)

2010-02-01 Thread Minh Nguyen
Hi, 2010/2/2 jplab : > But what is annoying is that on the intel server with 10.5 and sage > 4.3, it does work! I think that is expected. The bug at http://trac.sagemath.org/sage_trac/ticket/7095 only affects Mac OS X 10.6. You should have no trouble using Sage 4.3 on Mac OS X 10.5. -- Reg

Re: [sage-support] Re: ubuntu 9.1 installation trouble

2010-02-01 Thread Minh Nguyen
Hi kitz, On Tue, Feb 2, 2010 at 6:35 AM, kitz wrote: > Thank you all again. Sage on. Glad to know it works out for you. > (Is there a way to mark this thread as solved?) I'm not aware of anything like that for email threads on Google groups. -- Regards Minh Van Nguyen -- To post to thi

[sage-support] Re: Runtime error: Unable to start gap (as user "nobody" with xgrid)

2010-02-01 Thread jplab
Hi, On 1 fév, 14:01, Minh Nguyen wrote: > Hi, > > On Tue, Feb 2, 2010 at 5:29 AM, jplab wrote: > > > > > My computation are considerably slowed down by this bug and I would be > > very happy to find a solution! Help! If you need more info, let me > > know! > > My best guess is that mixing Sage

[sage-support] Re: ubuntu 9.1 installation trouble

2010-02-01 Thread kitz
Thanks to all who helped yesterday, M&S in particular. Using sudo aptitude install build-essential (instead of apt-get or synaptic manager) downgraded the gcc and libraries to 4.4.1-4ubuntu8 so the dependencies all worked. Then gfortran came in without a hitch and Sage is running from a pre-compile

Re: [sage-support] Runtime error: Unable to start gap (as user "nobody" with xgrid)

2010-02-01 Thread Minh Nguyen
Hi, On Tue, Feb 2, 2010 at 5:29 AM, jplab wrote: > My computation are considerably slowed down by this bug and I would be > very happy to find a solution! Help! If you need more info, let me > know! My best guess is that mixing Sage 4.3 and 4.3.1 with Mac OS X 10.5 and 10.6 can be problematic

[sage-support] Runtime error: Unable to start gap (as user "nobody" with xgrid)

2010-02-01 Thread jplab
Hi, I'm currently using xgrid for my computations... Here is the setup: We have multiple imac OS 10.6, a intel server with mac OS 10.5 and two G5 mac (10.5). All of them have sage4.3 (or 4.3.1) binary build. In order for us to make xgrid work with sage, we gave some more rights for user "nobody"

[sage-support] Re: exponential and simplify

2010-02-01 Thread kcrisman
On Feb 1, 10:47 am, Simon wrote: > Hi, this is hopefully an easy question: > > As a simple exercise, I'm trying to show that \int_0^{2\pi} e^{i (m-n) > x}dx = 2\pi\delta_{mn} for integer m, n. > Here's how I did it: > > sage: var('m,n'); w = SR.wild(0); > sage: assume(n, 'integer');assume(m, 'in

[sage-support] Sage Virtualbox missing vboxfs

2010-02-01 Thread PKHG
I am running (Vista) the Virtualbox with sange appliance (sage-virtualbox-4.2.1.p1.zip) and it works nicely. But I would like to use a local Vista-directory to exchange files. Now the problem, ONCE I succeeded to use c:\01sage to save a picture using sudo mount -t vboxfs ... But a second time I a

[sage-support] exponential and simplify

2010-02-01 Thread Simon
Hi, this is hopefully an easy question: As a simple exercise, I'm trying to show that \int_0^{2\pi} e^{i (m-n) x}dx = 2\pi\delta_{mn} for integer m, n. Here's how I did it: sage: var('m,n'); w = SR.wild(0); sage: assume(n, 'integer');assume(m, 'integer') sage: int = integrate(e^(i*(m-n)*x),x,0,2*

[sage-support] Re: Listing all k-minors of a matrix?

2010-02-01 Thread javier
You can see the source of the "minors" method using sage: M.minors?? (you need to have defined M beforehand). By browsing at that source one can easily find the general way of doing it: sage: A = Matrix(QQ, 3, [1,2,3,4,5,6,7,8,9]) sage: [A.matrix_from_rows_and_columns(rows, cols) for cols in co

[sage-support] Listing all k-minors of a matrix?

2010-02-01 Thread janwil
Hi all, Is there a way to get all the k-minors of a matrix as a list of matrices? Currently there is a method M.minors(2), but this only produces the list of determinants. What about the matrices themselves? Obviously, Sage must have them somewhere internally to compute the determinants, but how t

[sage-support] Re: sage blog

2010-02-01 Thread Harald Schilly
On Feb 1, 3:12 am, Minh Nguyen wrote: > In its current state, there is > no automatic way for me to configure Planet Sage to automatically get > Sage specific topics from your blog. I tried to create a yahoo pipe with filtering by item.title, but it doesn't work. I think the rss feed is a bit bro

[sage-support] Re: Sage in calculators

2010-02-01 Thread Harald Schilly
On Feb 1, 4:59 am, Cal Armstrong wrote: > I would rather see it ported to a device that students already have, their > smartphones, instead of saddling them with the purchase of another device. I just want to add that it is already possible to run sympy (pure python) inside android's python scrip

[sage-support] Re: resultant

2010-02-01 Thread Simon King
Hi Michael, On Feb 1, 2:37 am, Michael Beeson wrote: > I let Mathematica run a similar problem for 36 hours with no reply; > but I don't understand why it's too difficult. Indeed, not easy. By the way, in your first example, you defined sage: R. = QQ[] sage: a = z^2 - z^-2 sage: f = z^2 *(p-a)

[sage-support] Re: feature request - worksheets labels.

2010-02-01 Thread Kakaz
On 1 Lut, 00:34, William Stein wrote: > 2010/1/31 Kakaz : > > > I have several worksheets in my sage, and when I have some new ideas I > > create other one, somethimes just for fun. So there are worksheets > > named: "Idea 1", "Matrices", 'FFT", "FFT3" etc. After a month I do not > > remember wh