Re: [sage-support] Text Editor for Sage

2010-02-02 Thread Dan Drake
On Tue, 02 Feb 2010 at 09:55PM -0800, Georges wrote: > I'm new to Sage/Sun VirtualBox (Windows Vista x64). I can open "sage: > prompt", "Sage Notebook" (Firefox icon), no problem. I'm trying to > work on some programming (Sage Tutorials Release 4.3.1, Chapter 5). > The question I have is how do I

[sage-support] Re: how to cast finite field elements into p-adic ring

2010-02-02 Thread Rado
Something seems to be broken in extensions of p-adics. Here are two examples: sage: R. = Zq(9) sage: R.residue_system() TypeError: cannot convert x to a p-adic element and sage: el=R.random_element() sage: el.slice(el.valuation(),el.valuation()+1) TypeError: 'sage.rings.padics.padic_ZZ_pX_CA_e

[sage-support] Text Editor for Sage

2010-02-02 Thread Georges
Hi All, I'm new to Sage/Sun VirtualBox (Windows Vista x64). I can open "sage: prompt", "Sage Notebook" (Firefox icon), no problem. I'm trying to work on some programming (Sage Tutorials Release 4.3.1, Chapter 5). The question I have is how do I create/open/edit a sage file. Is there a simple te

Re: [sage-support] Re: sage blog

2010-02-02 Thread Minh Nguyen
Hi, On Wed, Feb 3, 2010 at 1:50 PM, wrote: > All I know is this is my feed: > > http://calcpage.tripod.com/shadowfax/rss.xml > > does that help? That actually feeds every update from your blog to an aggregator. People who subscribe to Planet Sage often do so for Sage specific posts. To aggregat

Re: [sage-support] openMPI and MPI4PY?

2010-02-02 Thread Minh Nguyen
Hi, On Wed, Feb 3, 2010 at 1:36 PM, wrote: > Are openMPI and MPI4PY included in the SAGE distribution? No. Both Open MPI and mpi4py are not part of the Sage standard repository. For what's available in the repository of standard packages, see the page for standard spkg's [1]. However, if you wa

[sage-support] how to cast finite field elements into p-adic ring

2010-02-02 Thread dmharvey
Hi, After I create the residue field of a p-adic ring, how do I cast elements of the field back into the ring? Any lift is fine. The obvious thing doesn't work: sage: R. = Zq(9) sage: F = R.residue_class_field() sage: F Finite Field in z0 of size 3^2 sage: a = F.gen() sage: R(a) -

Re: [sage-support] Re: sage blog

2010-02-02 Thread calcpage
All I know is this is my feed: http://calcpage.tripod.com/shadowfax/rss.xml does that help? 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, sen

[sage-support] openMPI and MPI4PY?

2010-02-02 Thread calcpage
Are openMPI and MPI4PY included in the SAGE distribution? I see MPI4PY mentioned here: http://www.sagemath.org/doc/numerical_sage/mpi4py.html Also, this blog http://www.sagemath.org/doc/numerical_sage/mpi4py.html says that openMPI is included when you install SAGE. I don't see how that's possib

[sage-support] Re: orthogonal subspace?

2010-02-02 Thread kcrisman
On Feb 2, 3:23 pm, Mike Hansen wrote: > Hello, > > On Tue, Feb 2, 2010 at 12:08 PM, VictorMiller wrote: > > I can't find a method for a vector space (or perhaps a subspace of a > > vector space) for "orthogonal subspace". Since vector space seem to > > be equipped with an inner product this se

[sage-support] Re: Strange behaviour of trig_expand

2010-02-02 Thread kcrisman
On Feb 2, 3:10 pm, "ma...@mendelu.cz" wrote: > On 2 ún, 17:38, Nicolas wrote: > > > > > Thanks for your answer ! > > > Following your idea, ny playing around in maxima, I found that : > > > trigreduce(sin((a+b)/c)) > > > sin(b/c+a/c) > > > Therefore > > trigexpand(trigreduce(sin((a+b)/c)))

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

2010-02-02 Thread Douglas Mencken
Dave, thank you for reply! Building flex from source solved this issue. So it is definitely the problem with Fedora repos. And sorry for your time. -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googleg

Re: [sage-support] How to contour_plot piecewise defined function?

2010-02-02 Thread David Joyner
I personally don't see how off the top of my head, but if you figure out a way to do it, please post it! Maybe reading to source code of Piecewise and/or contour_plot might help? On Tue, Feb 2, 2010 at 1:00 PM, Eugene Goldberg wrote: > Hi! > > I've got a few functions like this: > > f1(x,y)=sin

[sage-support] Re: Cannot run Sage

2010-02-02 Thread Harald Schilly
On Feb 2, 10:01 pm, Alex Ghitza wrote: > (Other mirrors might have it as well by now.) I'm afraid, no. They have shut down the master server more than a day ago, I don't know what has happened ... :( H -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from th

[sage-support] Re: using sage -tp vs testall

2010-02-02 Thread Minh Nguyen
Hi Ross, On Wed, Feb 3, 2010 at 8:50 AM, Minh Nguyen wrote: > The thrust of this post is how do I use sage -tp properly... See the Developers' Guide, especially the sections "Parallel testing many modules" [1] and "Parallel testing the whole Sage library" [2]. > Id like to do the equivalent

[sage-support] Fwd: using sage -tp vs testall

2010-02-02 Thread Minh Nguyen
Hi folks, The following forwarded message is from someone who wasn't able to directly send to this list. -- Regards Minh Van Nguyen -- Forwarded message -- From: ross k Date: Wed, Feb 3, 2010 at 8:40 AM Subject: Fwd: using sage -tp vs testall To: Minh Nguyen Minh Sorry to

Re: [sage-support] Re: Cannot run Sage

2010-02-02 Thread Alex Ghitza
On Tue, 2 Feb 2010 09:16:52 -0800 (PST), Drini wrote: > > Is it still up? If not, a fix is available somewhere? I just ran into > this problem (arch 32bit also) today > Yes, try http://modular.math.jmu.edu/linux/32bit/sage-4.3.1-fat-archlinux-i686-Linux.tar.lzma (Other mirrors might have it a

Re: [sage-support] orthogonal subspace?

2010-02-02 Thread Mike Hansen
Hello, On Tue, Feb 2, 2010 at 12:08 PM, VictorMiller wrote: > I can't find a method for a vector space (or perhaps a subspace of a > vector space) for "orthogonal subspace".  Since vector space seem to > be equipped with an inner product this seems like a natural function > to have.  Am I missing

[sage-support] Re: Strange behaviour of trig_expand

2010-02-02 Thread ma...@mendelu.cz
On 2 ún, 17:38, Nicolas wrote: > Thanks for your answer ! > > Following your idea, ny playing around in maxima, I found that : > > trigreduce(sin((a+b)/c)) > > sin(b/c+a/c) > > Therefore > trigexpand(trigreduce(sin((a+b)/c))) > > cos(a/c)*sin(b/c)+sin(a/c)*cos(b/c) > Which is what is wan

[sage-support] orthogonal subspace?

2010-02-02 Thread VictorMiller
I can't find a method for a vector space (or perhaps a subspace of a vector space) for "orthogonal subspace". Since vector space seem to be equipped with an inner product this seems like a natural function to have. Am I missing something? If not, I vote that it should be added. Victor -- To p

[sage-support] Re: Strange behaviour of trig_expand

2010-02-02 Thread ma...@mendelu.cz
On 2 ún, 18:11, andrejv wrote: > > I don't know how to change sin((x+y)/a) to sin(x/a + y/a) in Sage, > maybe someone else can help you with that. This is expand from Maxima sage: sin((a+b)/c)._maxima_().expand().sage() sin(a/c + b/c) Robert -- To post to this group, send email to sage-support

Re: [sage-support] Profiling code in Sage

2010-02-02 Thread Mike Hansen
On Tue, Feb 2, 2010 at 7:50 AM, Minh Nguyen wrote: > Hi Robert, >> Note, however, that code passed to prun is not preparsed. > > Good point. I think this is tracked at ticket #2054 > > http://trac.sagemath.org/sage_trac/ticket/2054 I've put a patch up which fixes this by doing something similar t

Re: [sage-support] failed to built sage-4.3.1 on fedora 11

2010-02-02 Thread Minh Nguyen
Hi Georg, On Wed, Feb 3, 2010 at 4:10 AM, ggrafendorfer wrote: > ../src/graph/plotfltk.c:193: error: 'class Plotter' has no member > named 'show' > ../src/graph/plotfltk.c:194: error: 'Fl' has not been declared > make[3]: *** [plotfltk.o] Error 1 > make[3]: Leaving directory `/scratch/bin/sage

[sage-support] How to contour_plot piecewise defined function?

2010-02-02 Thread Eugene Goldberg
Hi! I've got a few functions like this: f1(x,y)=sin(x)+cos(y) f2(x,y)=sin(y)+cos(x) and I need to plot counter graphics like: contour_plot(lambda x,y:f1(x,y),(x,0,3),(y,0,14))+contour_plot(lambda x,y:f2(x,y),(x,3,6),(y,0,14)) can i do this easily using piecewise function? g=Piecewise([ [(0,3)

[sage-support] Re: Cannot run Sage

2010-02-02 Thread Drini
On Jan 30, 7:06 am, Alex Ghitza wrote: > On Sat, 30 Jan 2010 18:01:45 +1100, Alex Ghitza wrote: > > > I will make a new binary distribution and upload it somewhere, and I'll > > send you the link when that's done. > > It's basically done; I am getting it compressed with lzma right now, so > it

[sage-support] Re: Strange behaviour of trig_expand

2010-02-02 Thread andrejv
On Feb 2, 3:06 pm, Nicolas wrote: > Here is some to-my-opinion strange behaviour of trig_expand : > > #Declare real variables > var('a b c') > assume([a,'real'],[b,'real'],[c,'real']) > assumptions() > ---> [a is real, b is real, c is real] > > #Case 1 > sin(a+b).trig_expand() > ---> sin(a)*cos(b)

[sage-support] failed to built sage-4.3.1 on fedora 11

2010-02-02 Thread ggrafendorfer
Hi, I tried to built sage-4.3.1 on fedora 11 (amd phenom II X4), when compiling pari a problem arised. here are the relevant lines of install.log: == Shall we try to build pari 2.3.3 (released) now (y/n)? [n] Ok. Type "make

[sage-support] Re: Strange behaviour of trig_expand

2010-02-02 Thread Nicolas
Thanks for your answer ! Following your idea, ny playing around in maxima, I found that : trigreduce(sin((a+b)/c)) > sin(b/c+a/c) Therefore trigexpand(trigreduce(sin((a+b)/c))) > cos(a/c)*sin(b/c)+sin(a/c)*cos(b/c) Which is what is wanted but I did not find any trigreduce in sage Any i

Re: [sage-support] Profiling code in Sage

2010-02-02 Thread Minh Nguyen
Hi Robert, On Tue, Feb 2, 2010 at 10:20 PM, Robert Bradshaw wrote: > Note, however, that code passed to prun is not preparsed. Good point. I think this is tracked at ticket #2054 http://trac.sagemath.org/sage_trac/ticket/2054 -- Regards Minh Van Nguyen -- To post to this group, send emai

[sage-support] Re: Deleting Sage on Mac

2010-02-02 Thread kcrisman
Here is the result of ps, which I forgot about: PID TT STAT TIME COMMAND 22503 p1 S 0:00.04 -bash 23320 p1- S 9:50.62 python /Users/.../sage-4.1.2.rc1.alpha3-copy/ local/bin/sage-cleaner 5846 pb Ss+0:00.03 bash /Users/.../sage-4.1.2.rc2/sage -python - u 5853 pb S+

[sage-support] Deleting Sage on Mac

2010-02-02 Thread kcrisman
Dear support, Has anyone ever had the following problem on Mac? I get this on both PPC and Intel. One has some Sage installations. One builds/downloads new ones. One puts the old ones in the Trash, and then tries to Empty Trash. Then one gets a whole bunch of messages like: "The operation ca

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

2010-02-02 Thread Jason Grout
On 02/02/2010 03:57 AM, Peter K.H. Gragert wrote: Hi, the second solution is indeed very nice. I tested with A = Matrix(QQ, 2,3, [1,2,3,4,5,6]);A giving: [1 2 3] [4 5 6] res=[A[rows,cols] for cols in Combinations(A.ncols(),2) for rows in Combinations(A.nrows(),2)];res [[1 2] [4 5], [1 3] [4 6

[sage-support] Re: exponential and simplify

2010-02-02 Thread kcrisman
On Feb 1, 11:53 pm, Simon wrote: > 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)                          

[sage-support] Re: Strange behaviour of trig_expand

2010-02-02 Thread kcrisman
Dear Nicolas, If you do sage: a = sin((a+b)/c) sage: a.trig_expand?? you will see the source code, which simply uses one of Maxima's expansion routines, whose behavior should be documented on the Maxima Sourceforge site. My suspicion is that Maxima declines to expand this because c might be zer

[sage-support] Re: Strange behaviour of trig_expand

2010-02-02 Thread Nicolas
Oops, case 4 ended at the end of the message... On 2 fév, 15:06, Nicolas wrote: > Here is some to-my-opinion strange behaviour of trig_expand : > > #Declare real variables > var('a b c') > assume([a,'real'],[b,'real'],[c,'real']) > assumptions() > ---> [a is real, b is real, c is real] > > #Case

[sage-support] Strange behaviour of trig_expand

2010-02-02 Thread Nicolas
Here is some to-my-opinion strange behaviour of trig_expand : #Declare real variables var('a b c') assume([a,'real'],[b,'real'],[c,'real']) assumptions() ---> [a is real, b is real, c is real] #Case 1 sin(a+b).trig_expand() ---> sin(a)*cos(b) + sin(b)*cos(a) #Case 2 sin((a+b)/2).trig_expand() --

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

2010-02-02 Thread Dr. David Kirkby
Douglas Mencken wrote: 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.fc

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

2010-02-02 Thread Robert Bradshaw
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 agree. Though installing Sage on a phone is an interesting exercise, in practice making sure the

Re: [sage-support] Profiling code in Sage

2010-02-02 Thread Robert Bradshaw
On Feb 1, 2010, at 6:14 PM, Minh Nguyen wrote: 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

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

2010-02-02 Thread Peter K.H. Gragert
Hi, the second solution is indeed very nice. I tested with A = Matrix(QQ, 2,3, [1,2,3,4,5,6]);A giving: [1 2 3] [4 5 6] res=[A[rows,cols] for cols in Combinations(A.ncols(),2) for rows in Combinations(A.nrows(),2)];res [[1 2] [4 5], [1 3] [4 6], [2 3] [5 6]] this is more or less my question thi