[sage-devel] Re: Cython code and doctests

2009-06-28 Thread Simon King
Hi! On 28 Jun., 17:15, Dag Sverre Seljebotn da...@student.matnat.uio.no wrote: I'm not sure what you refer to in the latter paragraph (perhaps it's something Sage-specific thing I don't know much about)... I meant the following: Assume you have files foo.pyx or bar.py that provide modules

[sage-devel] Re: Cython and Libraries

2009-06-29 Thread Simon King
Hi William, hi Nathann, On 29 Jun., 11:43, William Stein wst...@gmail.com wrote: I have a C program without a makefile which is meant to be used from the command line, and I would like to interface it with SAGE. I have been told this should be done through libraries, and I do not have the

[sage-devel] Re: Expression evaluation in new Symbolics

2009-06-29 Thread Simon King
Hi Golam, On 29 Jun., 13:47, Golam Mortuza Hossain gmhoss...@gmail.com wrote: Thanks. It helps a lot to know this. I am looking forward to see the updated version. If you don't want to wait for the update: You can ask for evaluation explicitly, e.g., like this: sage: f(x)=sin(x) sage: f(1.57)

[sage-devel] Could you elaborate more on spkg-check?

2009-07-05 Thread Simon King
Dear sage devel, currently I am writing a test suite for my cohomology spkg. In the Developer's Guide, I read: spkg-check: this file runs the test suite. This is somewhat optional since not all spkgs have test suites. If possible do create such a script since it helps isolate bugs in upstream

[sage-devel] How to avoid Time Out in doc tests?

2009-07-05 Thread Simon King
Dear Sage devel, writing a test suite for my cohomology package, I got rather frustrated. After working around the randomness of some Gap functions, I am now concerned with the computation time. It happened that the tests passed, with a total time of about 15 minutes. But now, without me being

[sage-devel] Re: How to avoid Time Out in doc tests?

2009-07-05 Thread Simon King
Dear John, On 5 Jul., 21:22, John H Palmieri jhpalmier...@gmail.com wrote: - How can one influence the time after which a test is killed? Look at the file SAGE_ROOT/local/bin/sage-doctest: it uses environment variables SAGE_TIMEOUT and SAGE_TIMEOUT_LONG to determine how long (in seconds)

[sage-devel] Re: Could you elaborate more on spkg-check?

2009-07-05 Thread Simon King
Hi Georg, On 5 Jul., 22:13, gsw georgswe...@googlemail.com wrote: first of all, sage-check is something specific to Sage. Do you mean spkg-check? But sure, this is Sage specific as well, since AFAIK spkg stands for Sage package. But if you have, say, a C or CPP library in your spkg, it is a

[sage-devel] Should errors be returned or raised??

2009-07-06 Thread Simon King
Dear Sage-Devel, I found a situation when calling GF(2) returned the tuple (TypeError, error coercing to finite field) I guess the error should be raised and not returned. Or is this intended behaviour? If you think agree it is a bug or if you know a good reason why the error is not raised

[sage-devel] Re: What are *DIS*advantages of Sage compared to the 3 M's ?

2009-07-07 Thread Simon King
Hi! On 7 Jul., 09:45, Dr. David Kirkby david.kir...@onetel.net wrote: ... There might be advantages to actually offing a 'premier service' with guaranteed response times, confidentiality etc. The fact that one could get the same service for no charge would not matter - it might help get Sage

[sage-devel] sage.math running out of disk space

2009-07-08 Thread Simon King
Hi! Two minutes ago I tried to build a package, that I planned to submitt this evening, but it failed since there is absolutely no free byte left on one partition of sage.math's disk: $ df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda1 71117180 67538052

[sage-devel] Re: sage.math running out of disk space

2009-07-08 Thread Simon King
Hi William, On 8 Jul., 21:37, William Stein wst...@gmail.com wrote: ... By the way, the right place to have such discussions is on the sagemath-users mailing list: http://groups.google.com/group/sagemath-users I wasn't aware of that list. Thank you for fixing the issue! Cheers, Simon

[sage-devel] SPKG computing modular cohomology rings of finite p-groups

2009-07-08 Thread Simon King
Dear Sage-Devel, I'd like to announce our Sage package for the computation of cohomology rings with coefficients in GF(p) for finite p-groups. The trac ticket is at http://trac.sagemath.org/sage_trac/ticket/6491 and the documentation at

[sage-devel] Re: SPKG computing modular cohomology rings of finite p-groups

2009-07-10 Thread Simon King
Dear William, On 9 Jul., 22:50, William Stein wst...@gmail.com wrote: It would be very useful if you could post on the ticket *PRECISELY* what you think a person should do to referee it and sign off on it being officially added to the optional package repo. I.e.,   1. Install on the

[sage-devel] Re: Sage and Singular Talk

2009-07-15 Thread Simon King
Hi Martin, On 15 Jul., 13:25, Martin Albrecht m...@informatik.uni-bremen.de wrote: I have uploaded a draft of my slides to:  http://sage.math.washington.edu/home/malb/talks/sage-singular.pdf Page 8: Is there really a script sage -spkg? What is it used for? I only know sage -pkg. It is good

[sage-devel] Re: A Spkg does not compile in SAGE when it compiles otherwise

2009-07-16 Thread Simon King
Hi Nathann, On 16 Jul., 09:03, Nathann Cohen nathann.co...@gmail.com wrote: I am trying to build a spkg for GLPK, and something happens that I don't understand. There is no error at all when I run manually ./ configure make make install in the console, and that is all the file spkg-install

[sage-devel] Re: printing and latex representation of multivariate polynomials

2009-07-18 Thread Simon King
Hi! On 18 Jul., 05:14, Alex Ghitza aghi...@gmail.com wrote: ... I'd like the second example to look more like the first and it's pretty easy to make that happen.  However, this means: {{{ sage: x 1.00*x sage: y 1.00*y sage: (x^2 - y).variables()

[sage-devel] Re: Buildling standalone python/cython modules that cimport Sage things

2009-07-25 Thread Simon King
Hi Jason, On 25 Jul., 09:44, Jason Grout jason-s...@creativetrax.com wrote: Hi all, I have a directory with several python and cython files that import and cimport Sage objects and use them.  I can't figure out how to build the Cython files that reference Sage objects when these files are

[sage-devel] Can someone explain why the following code leaks?

2009-07-28 Thread Simon King
Hi! In the attempt to hunt down a memleak in my cohomology package, I found something that I can't understand. Can you perhaps explain what happens? Put the following code into a file int2Z.pyx: def test(N): cdef int i for i from 0 = i = N: a += 1 # just in order to avoid that

[sage-devel] Re: Can someone explain why the following code leaks?

2009-07-28 Thread Simon King
Oops, there was a typo: On Jul 28, 1:20 pm, Simon King simon.k...@uni-jena.de wrote: Put the following code into a file int2Z.pyx: def test(N):     cdef int i Here, insert a=0     for i from 0 = i = N:         a += 1 # just in order to avoid that the loop is empty Cheers, Simon

[sage-devel] Re: Can someone explain why the following code leaks?

2009-07-28 Thread Simon King
Hi Robert, On Jul 28, 1:47 pm, Robert Bradshaw rober...@math.washington.edu wrote: ... I would start up Sage without importing your code to get a baseline.   That's very surprising--I don't know much about valgrind, but it only   shows where the memory in question was allocated, not where it

[sage-devel] Re: Follow up question

2009-07-30 Thread Simon King
On Jul 30, 5:51 pm, William Stein wst...@gmail.com wrote: ... It's nice to hear something positive about distutils for a change :-) Isn't it sage-flame ?? :-) Simon --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To

[sage-devel] Re: multiplicative_order in finite fields

2009-07-31 Thread Simon King
Hi Victor, On Jul 31, 3:59 pm, VictorMiller victorsmil...@gmail.com wrote: I was just looking at the code for multiplicative_order in finite_field_element.py, and noticed that it factors the group order, and find the cofactors corresponding to each prime power dividing the order (which is

[sage-devel] Re: possible bug in permutation/quotient group?

2009-07-31 Thread Simon King
Hi David, On Jul 31, 4:47 pm, David Joyner wdjoy...@gmail.com wrote: Maybe I don't understand your question. It seems you are claiming that if G is a permutation group and H is a normal subgroup then the quotient G/H embeds into G. Are you sure that is true? ... Where do the 5 and 6

[sage-devel] Re: possible bug in permutation/quotient group?

2009-07-31 Thread Simon King
Hi! On Jul 31, 5:11 pm, kcrisman kcris...@gmail.com wrote: ... Though I agree that this could be confusing, the good part is that this creates (an isomorphic) group without having to talk about which element of the coset you pick each time.  It would be misleading to say that (1234) was an

[sage-devel] Re: evil spkgs?

2009-08-01 Thread Simon King
Hi David, On 1 Aug., 23:55, David Joyner wdjoy...@gmail.com wrote: 1. Be very very careful about modifying existing Python or Cython files in the Sage devel tree. Is it really allowed for an SPKG to modify things in the Sage devel tree? This highly surprises me. I thought that an SPKG is a

[sage-devel] Frequency of package updates?

2009-08-01 Thread Simon King
Dear Sage developers, I asked the following question in a mail to William Stein and David Joyner, but William suggested the discussion should be in public. Yesterday my cohomology package became an optional spkg. But there are a lot of homological algebra constructions that aren't in, yet.

[sage-devel] Re: reviews for Sage 4.1.1.rc1

2009-08-02 Thread Simon King
Hi! On 2 Aug., 03:21, Minh Nguyen nguyenmi...@gmail.com wrote: Hi folks, The Sage 4.1.1 release cycle is now in 4.1.1.rc1, which hasn't been released yet. As this release candidate is for stabilizing Sage and fixing bugs, I thought I should outline below a number of bug fixes which would

[sage-devel] Re: The 3-days Sage Formation I gave + Feedbacks and thoughts

2009-08-03 Thread Simon King
Hi Sébastien, On 3 Aug., 19:44, William Stein wst...@gmail.com wrote: ... * The same somebody likes the idea of defining in Sage object and translate it from one system to the other. One reason is that he told me that he prefers the sage latex output for some object. I think translation of

[sage-devel] Re: The 3-days Sage Formation I gave + Feedbacks and thoughts

2009-08-03 Thread Simon King
On 3 Aug., 20:28, Simon King simon.k...@nuigalway.ie wrote: Hi Sébastien, But there *is* an interface to sage in sage. It is called sage0, and it works as expected. Since I don't have Maple, I use Singular: sage: A = matrix(2,[1..4]) sage: B = singular(A) sage: C = B.sage() sage: D

[sage-devel] Re: What do we do about the Maxima / ecl / Solaris issues?

2009-08-03 Thread Simon King
Your implication that ECL should note the error and then continue to compile somehow reminds a recent thread (probably on sage-devel) where it was reported that some spkg sends compiler warnings to /dev/ null. Unless you can *prove* that the special circumstance (static typing error in which a

[sage-devel] Re: Getting started with my own branch

2009-08-07 Thread Simon King
Hi Victor, On 6 Aug., 14:17, VictorMiller victorsmil...@gmail.com wrote: Georg, Thanks.  My situation is a bit unique (as William fully understands).  Copying the sage source from sagemath.org is not an option that I have.  Our sysadmins get the source and then build it and make a built

[sage-devel] Re: Question on partial derivative of f(x, x) w.r.t. x

2009-08-09 Thread Simon King
Hi! On Aug 8, 11:50 am, Golam Mortuza Hossain gmhoss...@gmail.com wrote: ... Now if I say f(x, x) = x  then from the output above I would get 2. Is it *possible* to say f(x,x)=x? What is it supposed to mean? - A function on one variable x, written down in an odd way? - A function whose

[sage-devel] Re: Question on partial derivative of f(x, x) w.r.t. x

2009-08-09 Thread Simon King
Hi Golam! On 9 Aug., 22:58, Golam Mortuza Hossain gmhoss...@gmail.com wrote: Hi Simon, On Sun, Aug 9, 2009 at 4:24 PM, Simon Kingsimon.k...@nuigalway.ie wrote: Now if I say f(x, x) = x  then from the output above I would get 2. Is it *possible* to say f(x,x)=x? What is it supposed to

[sage-devel] Re: Test failures with sage-4.1.1.rc0 with Maxima 5.19.0

2009-08-11 Thread Simon King
Hi! On Aug 11, 10:04 am, Tim Lahey tim.la...@gmail.com wrote: On Aug 11, 2009, at 4:55 AM, Dr. David Kirkby wrote: 1) Some things 'fail' a test as they are now evaluated in Maxima. e.g.     sage: integral( exp(-x^2)*ln(x), x, 0, oo) Expected:     integrate(e^(-x^2)*log(x), x, 0,

[sage-devel] Interactive pdf?

2009-08-13 Thread Simon King
Hi Sage-Devels, apparently my new boss is very good in TeX: He showed me a draft (or better: proof of concept) of a book in pdf format, and when you click the examples, a gap session pops up and lets you compute these examples. Or, if you click some (static) 3d-picture, an application pops up,

[sage-devel] Re: Interactive pdf?

2009-08-13 Thread Simon King
Hi William, On Aug 13, 5:25 pm, William Stein wst...@gmail.com wrote: On Thu, Aug 13, 2009 at 8:25 AM, Simon Kingsimon.k...@nuigalway.ie wrote: ... Wow, so when I read a random pdf off the web and click on it, then it could run a shell command, e.g., rm -rf $HOME? My boss just gave me some

[sage-devel] Upgrade of optional group cohomology spkg

2009-08-14 Thread Simon King
Dear sage-devel, dear group theorists, at ticket #6750, I propose an upgrade of our optional spkg that can compute modular cohomology rings of finite p-groups, ready for review. As a new feature, the package provides Massey products. This is a structure on cohomology rings that goes beyond the

[sage-devel] Re: Sage 4.1.1: showcasing your features in release tour

2009-08-16 Thread Simon King
Hi Minh, On Aug 16, 4:15 pm, Minh Nguyen nguyenmi...@gmail.com wrote: The source of Sage 4.1.1 has been mirrored out. Now is the time to polish up the release tour and showcase features in 4.1.1. I have created a general structure of the release tour at http://wiki.sagemath.org/sage-4.1.1

[sage-devel] Re: Sage 4.1.1: showcasing your features in release tour

2009-08-16 Thread Simon King
On Aug 16, 5:03 pm, Simon King simon.k...@nuigalway.ie wrote: ... Would you mind if I describe my (optional) group cohomology package in the release tour? It was merged in 4.1.1.rc1 Oops, I missed the fact that you already listed it on the Wiki page. Sorry for the noise. Cheers, Simon

[sage-devel] Re: Sage 4.1.1: showcasing your features in release tour

2009-08-16 Thread Simon King
Hi Minh, On Aug 16, 5:11 pm, Minh Nguyen nguyenmi...@gmail.com wrote: I have put your optional package under the section Packages as ticket #6491. By all means, please do so. It's better if people read about your work from your own description than to read about it from me. I have no idea

[sage-devel] Re: Serious bug in integral using Maxima?

2009-08-19 Thread Simon King
Hi! On Aug 19, 3:53 pm, rjf fate...@gmail.com wrote: Consider integrate(f(x,y),x*y). do you compute   d(x*y)  as x*dy+y*dx and compute    integrate(f(x) *x,y) + integrate(f(x)*y,x)? Here's another interpretation of variable = x^2... integrate(f(x),x^2)  =  

[sage-devel] Re: enhance usability of symbolic expressions?

2009-08-19 Thread Simon King
Hi Robert, On 19 Aug., 22:43, Robert Bradshaw rober...@math.washington.edu wrote: Is u.subs(globals()) good enough? You mean like this: sage: u=1+x sage: x=1 sage: u.subs(globals()) Traceback (most recent call last): ... TypeError: no canonical coercion from type 'str' to Symbolic Ring sage:

[sage-devel] Re: quoting netiquette

2009-08-20 Thread Simon King
Hi Nick! On 20 Aug., 21:22, Nick Alexander ncalexan...@gmail.com wrote: Please: when you reply to a message, quote appropriately. +1 Actually, a year or so ago, there was already a thread on that matter. Cheers, Simon --~--~-~--~~~---~--~~ To post to this

[sage-devel] Re: Suggestion to print extra information in the banner.

2009-08-21 Thread Simon King
Hi! On Aug 21, 12:13 pm, David Joyner wdjoy...@gmail.com wrote: I don't object much but I wonder if variable output should always be tested and I don't know how to test the banner display. If this is not voted for, I would like to see this as an option to the version command. It is indeed

[sage-devel] Re: Suggestion to print extra information in the banner.

2009-08-21 Thread Simon King
Hi David, On Aug 21, 5:54 pm, David Kirkby david.kir...@onetel.net wrote: 2009/8/21 Simon King simon.k...@nuigalway.ie: [...] I don't see anything wrong with '24 CPUs' Sure, '24 CPUs' is short enough. But by listing all 24 CPUs, I mean something like the output of cat /proc/cpuinfo, which

[sage-devel] Re: Suggestion to print extra information in the banner.

2009-08-22 Thread Simon King
Hi John, On 22 Aug., 08:03, John H Palmieri jhpalmier...@gmail.com wrote: * Type notebook() for the notebook interface. +1 for mentioning the notebook, but I think 'type notebook() for the GUI' is shorter, and since the word notebook is an explicit command name, it is quite likely that the

[sage-devel] Re: A graph of the whole world....

2009-08-22 Thread Simon King
Hi! On 22 Aug., 10:11, Nathann Cohen nathann.co...@gmail.com wrote: Is there a variable defining the path of sage up to the current branch ? There is SAGE_ROOT, and if I am not mistaken then SAGE_ROOT+'/devel/ sage/' is a link to the current mercurial branch. But there is also a folder

[sage-devel] Re: Suggestion to print extra information in the banner.

2009-08-22 Thread Simon King
On 22 Aug., 10:41, Simon King simon.k...@nuigalway.ie wrote: 4. sage_help(foo), where foo is any object, prints (or shows in less): 'Note: Typing %s?? will give you the following information more easily.\n\n%s'%(foo.__name__, foo.__doc__) I meant to only write 'Note: Typing %s

[sage-devel] Re: A graph of the whole world....

2009-08-22 Thread Simon King
Hi William! On 22 Aug., 12:25, William Stein wst...@gmail.com wrote: [...] No, use the SAGE_DATA variable, which is defined in misc/misc.py: Thank you, I didn't know about that one. Is it for data that concern the whole Sage installation, or is it specific to a single user (like DOT_SAGE)? In

[sage-devel] Re: Design question about rings, re #6441

2009-08-22 Thread Simon King
Hi Sebastian, On 22 Aug., 23:46, Sebastian Pancratz s...@pancratz.org wrote: [...] I think I'd prefer the other suggestion, namely leaving the default behaviour of methods like is_field as it is at the moment (thereby not breaking any other code!) and introducing an optional argument to

[sage-devel] Re: Sage benchmark

2009-08-22 Thread Simon King
On 22 Aug., 23:53, Dr. David Kirkby david.kir...@onetel.net wrote: [...] sage: R.x,y,z = PolynomialRing(GF(13)) sage: time _ = expand((x+y+z+1)**100) CPU times: user 0.07 s, sys: 0.00 s, total: 0.08 s Wall time: 0.08 s In[1]:= Timing[Expand[(x+y+z+1)^100, Modulus - 13]][[1]] Out[1]=

[sage-devel] Re: Design question about rings, re #6441

2009-08-24 Thread Simon King
Hi Minh, On 24 Aug., 02:10, Minh Nguyen nguyenmi...@gmail.com wrote: [...] Since I am not an experienced programmer: Are there reasons to not use a dictionary for those kind of things? A good point: searching through a dictionary is essentially constant time. A bad point: can't assume

[sage-devel] Re: Design question about rings, re #6441

2009-08-24 Thread Simon King
Hi William, On Aug 24, 1:35 pm, William Stein wst...@gmail.com wrote: [...] But you couldn't use the attribute ._properties in doc tests anyway, because AFAIK rings are cdef classes, so, you can't access the attributes on a python level. Yes you can, if you declare them cdef public

[sage-devel] Re: Using MPIR or GMP with multiple memory managers

2009-08-24 Thread Simon King
Hi! On Aug 24, 4:53 pm, William Stein wst...@gmail.com wrote: Yep, you are right, as I just verified (and added links back and forth). Simon King might also be happy, since he reported this bug. I am :-)) Thank you for fixing it! Cheers, Simon

[sage-devel] Re: Upgrade of optional group cohomology spkg

2009-08-25 Thread Simon King
Dear sage-devel, sorry for posting again on that matter, but the updated spkg at http://trac.sagemath.org/sage_trac/ticket/6750 is still to be reviewed. I would describe the status as follows: - The first version of the spkg was carefully tested and installs on many platforms (thanks to David

[sage-devel] Re: Cleaner build process for my spkg

2009-08-26 Thread Simon King
Hi William, On Aug 26, 11:47 pm, William Stein wst...@gmail.com wrote: [...] Does this imply that a thorough build test now became necessary? That seems to.  Did you fix his problem? I don't know. The point is that I have no access to any Mac, and I have never seen this error message on any

[sage-devel] Building problems on Intel Mac

2009-08-27 Thread Simon King
Hi Minh, and Hi Mac Experts, On Aug 27, 12:34 am, Minh Nguyen nguyenmi...@gmail.com wrote: This harks back to the build problem with cliquer. I can test spkg's under any Linux boxes that I have access to. But not Mac boxes, which is a shame as many people are using OS X. Now I feel less

[sage-devel] Re: Building problems on Intel Mac

2009-08-27 Thread Simon King
Hi William, On Aug 27, 6:46 pm, William Stein wst...@gmail.com wrote: Should the use of make -jN be checked for in the spkg-install file in this case, since it seems to lead to problems? Yes, this is done in many spkg's actually. Can you name one of them, so that I can learn from reading?

[sage-devel] Re: Building problems on Intel Mac

2009-08-27 Thread Simon King
Hi John, On Aug 27, 4:15 pm, John H Palmieri jhpalmier...@gmail.com wrote: [...] Should the use of make -jN be checked for in the spkg-install file in this case, since it seems to lead to problems? Perhaps. But frankly I don't know how one does those things. I am really not good at writing

[sage-devel] Re: Building problems on Intel Mac

2009-08-27 Thread Simon King
Hi William! On Aug 27, 7:01 pm, William Stein wst...@gmail.com wrote: [...] I think python is one of them. You won't like what you see -- basically for those packages I think we use make instead of $MAKE.  That's it.    It sort of defeats the whole purpose of $MAKE..., but it works. Great,

[sage-devel] Re: Building problems on Intel Mac

2009-08-28 Thread Simon King
On Aug 27, 8:05 pm, Simon King simon.k...@nuigalway.ie wrote: And since I am not spoiled by good style, I doubt that I will miss $MAKE. But indeed, $MAKE is used in the Makefile of the C-MeatAxe, and therefore defining MAKE=make in spkg-install could help. For the record: John Palmieri

[sage-devel] Re: Inequalities in InfinitePolynomialRing

2009-09-01 Thread Simon King
Hi! On Sep 1, 8:31 am, Nathann Cohen nathann.co...@gmail.com wrote: Could you tell me why there does not seem to be any support for inequalities in InfinitePolynomialRing ? Because what you call inequalities are symbolic expressions. InfinitePolynomialRing has nothing to do with symbolics.

[sage-devel] Re: Building problems on Intel Mac

2009-09-02 Thread Simon King
Hi Minh, On Sep 2, 8:41 am, Minh Nguyen nguyenmi...@gmail.com wrote: [...] After some experimentation and reading, I got Sage 4.1.1 to build in 64-bit mode under OS X 10.5.8. I used Michael Abshoff's custom-built Fortran spkg as documented at http://wiki.sagemath.org/osx64 I have written

[sage-devel] Re: Factorial syntax

2009-09-02 Thread Simon King
Hi! On Sep 2, 7:40 am, Jason Grout jason-s...@creativetrax.com wrote: Wow, that seems totally ambiguous.  Is 5!!! equal to (5!!)! or (5!)!! or ((5!)!)!  The notation is pretty bad in this case. [...] Yes, and this is why the very common notation 5! is bad syntax that should be avoided in a

[sage-devel] Re: super commutative and noncommutative rings

2009-09-04 Thread Simon King
Hi all! On Sep 4, 11:33 am, Burcin Erocal bur...@erocal.org wrote: [...] Maybe, you can give use a list, what you need. Can you also provide example sage sessions showing how you think these objects should be constructed? I need graded commutative rings, which can be easily constructed,

[sage-devel] Re: super commutative and noncommutative rings

2009-09-04 Thread Simon King
Hi Martin! On Sep 4, 12:33 pm, Martin Albrecht m...@informatik.uni-bremen.de wrote: [...] But it is perhaps not so nice to break compatibility with the current way of defining an ordering by strings. Closer to Singular syntax would be   sage: R.x,y =

[sage-devel] Re: super commutative and noncommutative rings

2009-09-04 Thread Simon King
Hi Golam! On Sep 4, 12:18 pm, Golam Mortuza Hossain gmhoss...@gmail.com wrote: [...] An example session would be: -- sage:  A,B = nc_var('A,B') sage: a,b,c,d = var('a,b,c,d') sage:  C = a*A + b*A*A sage:  D = d*B sage: commutator(C, D) a*d*commutator(A,B) + b*d*A*commutator(A,B)

[sage-devel] Re: super commutative and noncommutative rings

2009-09-04 Thread Simon King
Hi Burcin! On Sep 4, 12:56 pm, Burcin Erocal bur...@erocal.org wrote: [...] So, one should expect that Sage should use two matrices as well. This is not necessary. There is some code written by Michael that converts the relations to a matrix, and passes that on to Singular around line 396

[sage-devel] Re: super commutative and noncommutative rings

2009-09-04 Thread Simon King
Hi Burcin, Hi Michael, On Sep 4, 1:23 pm, Burcin Erocal bur...@erocal.org wrote: [...] Do you mean the Letterplace (why do they capitalize the names of these things?!?) extension [1] ? [1]http://www.singular.uni-kl.de/Manual/latest/sing_425.htm#SEC478 I think so. I didn't use it myself, but

[sage-devel] Re: super commutative and noncommutative rings

2009-09-04 Thread Simon King
Hi Burcin! On Sep 4, 2:52 pm, Burcin Erocal bur...@erocal.org wrote: [...] Since there ishttp://trac.sagemath.org/sage_trac/ticket/4539and it says need work: What exactly is needed to do? Is it just a decision about the interface? In that case, I am +1 to your suggestion! No,

[sage-devel] Re: super commutative and noncommutative rings

2009-09-04 Thread Simon King
Hi Oleksandr! On Sep 4, 6:52 pm, Oleksandr mot...@rhrk.uni-kl.de wrote: [...] Please do let us know about your favorite and yet missing non- commutative features! Any feedback is greatly appreciated! AFAIK, the Singular kernel has a marker for functions that are only available in the

[sage-devel] Re: super commutative and noncommutative rings

2009-09-05 Thread Simon King
Hi Oleksandr, On Sep 5, 10:53 am, Oleksandr mot...@rhrk.uni-kl.de wrote: [...] First of all, please, let me explain that Singular kernel doesn't have any such markers... Really? The only part of the Singular kernel that I ever met is iparith.cc, or is this not kernel? Here, one typically sees

[sage-devel] Re: super commutative and noncommutative rings

2009-09-05 Thread Simon King
Hi Martin! On Sep 4, 12:33 pm, Martin Albrecht m...@informatik.uni-bremen.de wrote: [..] Think this would be rather un-pythonic: converting an object into a string instead of using it directly. But what about block orderings? If one allows a matrix ordering to be defined by a matrix, then

[sage-devel] Re: A ring with matrix ordering

2009-09-05 Thread Simon King
Hi! On Sep 5, 7:32 pm, Kwankyu ekwan...@gmail.com wrote: How about this syntax? sage: A = random_matrix(ZZ,3,3) sage: TermOrder(weight,matrix=A) following the Magma syntax for weight ordering. I certainly prefer the term weight ordering than matrix ordering. I don't know what is more

[sage-devel] Re: n(list)

2009-09-08 Thread Simon King
Hi Jason, On Sep 8, 10:58 am, Jason Grout jason-s...@creativetrax.com wrote: This seems really odd to me.  I expected to get back n() applied to each element of the list. sage: n([1,2]) 1.00 + 2.00*I Does anyone else find this behavior uncomfortable? Not I, at

[sage-devel] Re: n(list)

2009-09-08 Thread Simon King
Hi Burcin, On Sep 8, 11:21 am, Burcin Erocal bur...@erocal.org wrote: I would call it a bug, a side effect of trying to convert the argument to a complex number as a last resort. No, it is documented, at least implicitly. From the doc string of n: INPUT: - ``x`` - an object

[sage-devel] Re: [sage-devel was support] Re: sage -t

2009-09-10 Thread Simon King
Hi Jan! On Sep 10, 11:28 am, Jan Groenewald j...@aims.ac.za wrote: [...] According to that I see no way for a user to use a systemwide sage installation to test their own modules (not intended for ever bing included in sage, just modules they write and wish to test; in fact part of a course

[sage-devel] Re: sage -t

2009-09-10 Thread Simon King
On Sep 10, 11:52 am, Simon King simon.k...@nuigalway.ie wrote: So, export TEST_DIR to denote a directory in which the user has write permission. Oops, obvious misspelling: It is SAGE_TESTDIR, not TEST_DIR Cheers, Simon --~--~-~--~~~---~--~~ To post

[sage-devel] Re: [sage-devel was support] Re: sage -t

2009-09-10 Thread Simon King
Hi Jan! On Sep 10, 12:14 pm, Jan Groenewald j...@aims.ac.za wrote: Hi On Thu, Sep 10, 2009 at 03:52:08AM -0700, Simon King wrote: Anyway, you can use the environment variable SAGE_TESTDIR. I just did the following on sage.math:   $ mkdir tst   $ export SAGE_TESTDIR=`pwd`/tst

[sage-devel] Re: [sage-devel was support] Re: sage -t

2009-09-10 Thread Simon King
Hi Minh, On Sep 10, 12:12 pm, Minh Nguyen nguyenmi...@gmail.com wrote: Hi Simon, On Thu, Sep 10, 2009 at 8:52 PM, Simon King simon.k...@nuigalway.ie wrote: SNIP If this is part of your problem then I can elaborate on how I clumsily solved that problem. I would love to know about

[sage-devel] Re: [sage-devel was support] Re: sage -t

2009-09-10 Thread Simon King
Hi Jan, On Sep 10, 1:01 pm, Jan Groenewald j...@aims.ac.za wrote: 0 j...@muizenberg:~$vim test.py 0 j...@muizenberg:~$mkdir tst 0 j...@muizenberg:~$mv test.py tst/ 0 j...@muizenberg:~$export SAGE_TESTDIR=`pwd`/tst/ 0 j...@muizenberg:~$sage -t test.py Sorry, when I said test.py is in the

[sage-devel] Re: [sage-devel was support] Re: sage -t

2009-09-10 Thread Simon King
Hi Jan! On Sep 10, 1:45 pm, Jan Groenewald j...@aims.ac.za wrote: [...] 0 j...@muizenberg:~$sage -t test.py ERROR: File ./test.py is missing exit code: 1 Strange. If test.py is in your current directory, why isn't it found? 0 j...@muizenberg:~$sage -t ~/test.py sage -t  /home/jan/test.py  

[sage-devel] How to acknowledge external contributions to trac?

2009-09-11 Thread Simon King
Dear Sage-Devel, at http://trac.sagemath.org/sage_trac/ticket/6750 it occurred that people without trac account (David Green, Mikael Vejdemo Johansson) contributed off list, namely by suggesting good examples, that actually helped to track down bugs and resulted in doc tests. How should such

[sage-devel] Re: How to acknowledge external contributions to trac?

2009-09-11 Thread Simon King
Hi Minh! On Sep 11, 1:40 pm, Minh Nguyen nguyenmi...@gmail.com wrote: How should such contributions be acknowledged? Can they be added to the reviewer list? Yes. That's reasonable. Thank you! A related question: In the Author field, should it be the name of the author of the ticket? Or

[sage-devel] Re: How to acknowledge external contributions to trac?

2009-09-11 Thread Simon King
Hi Minh, On Sep 11, 3:21 pm, Minh Nguyen nguyenmi...@gmail.com wrote: [...] I have changed ticket #6491 to also name David Green as an author of the code contained in the package pGroupCohomology. Thank you! I must admit that it can be really difficult for me, or a release manager or a

[sage-devel] Unknown address

2009-09-13 Thread Simon King
Hi! The posts that I recently did on sage-devel resulted in a mail to my account with the subject Returned mail: User unknown, telling me that the address dph...@gmail.com had permanent fatal errors. Is there a way to not get such returned mail when posting to sage- devel? Cheers, Simon

[sage-devel] Unknown address

2009-09-13 Thread Simon King
Hi! The posts that I recently did on sage-devel resulted in a mail to my account with the subject Returned mail: User unknown, telling me that the address dph...@gmail.com had permanent fatal errors. Is there a way to not get such returned mail when posting to sage- devel? Cheers, Simon

[sage-devel] Re: General question on the kind of things we want in Sage

2009-09-17 Thread Simon King
Hi Nathann, On Sep 17, 4:00 pm, Nathann Cohen nathann.co...@gmail.com wrote: [...] These may be questions to ask in several years... No, that's clearly wrong: Those are questions that should (actually must!) be addressed before implementing any details. By the way, as Rob and Minh pointed

[sage-devel] Re: Learning from past experience

2009-09-20 Thread Simon King
Hi Bjarke! On 20 Sep., 14:51, Bjarke Hammersholt Roune bjarke.ro...@gmail.com wrote: In that case, could you explain what you did intend, since evidently I completely misunderstood you.    Are you proposing creating wiki pages, or a survey paper, or a directory of experts or? Benefiting

[sage-devel] Re: Suspiciously sorted sets

2009-09-21 Thread Simon King
Hi Rob! On Sep 21, 2:15 am, Rob Beezer goo...@beezer.cotse.net wrote: sage: g = Graph() sage: g.add_vertices(Subsets(3,2)) sage: g.vertices() [{2, 3}, {1, 2}, {1, 3}] sage: sorted(g.vertices()) [{1, 3}, {1, 2}, {2, 3}] sage: Subsets(3,2).list() [{1, 2}, {1, 3}, {2, 3}] sage:

[sage-devel] Re: Suspiciously sorted sets

2009-09-21 Thread Simon King
Hi! On Sep 21, 10:22 am, Simon King simon.k...@nuigalway.ie wrote: [...] So, unless someone implements __cmp__ (or similar) methods for Set_object_enumerated, you can't expect to get anything meaningful out of the sorting. If your question is just about getting *some* unique result (say

[sage-devel] Re: Suspiciously sorted sets

2009-09-21 Thread Simon King
Hi Nick, On 22 Sep., 00:02, Nick Alexander ncalexan...@gmail.com wrote: Just for the record, sorted sets make very little sense.   Sure. When I said unless something implements a __cmp__ method... I did not mean that one *should* implement it; I just wanted to explain sorted(...) relies on a

[sage-devel] Sage not properly catching GAP errors?

2009-09-23 Thread Simon King
Dear sage-devel, can you please point me to the place in the gap interface code where errors are caught? Namely, it seems to me that it is forgotten to quit GAP's break loop before continuing. Example: sage: def bugtrigger(n): : a = gap(1) : for i in range(n): :

[sage-devel] Re: Sage not properly catching GAP errors?

2009-09-23 Thread Simon King
Hi! On Sep 23, 10:43 am, Simon King simon.k...@nuigalway.ie wrote: [...] Probably I will be able to find the place in the code myself, but it might simplify the bug hunt if you can give me a pointer. The problem is tracked at http://trac.sagemath.org/sage_trac/ticket/7001 It turned out

[sage-devel] Re: Sage and congruent numbers

2009-09-28 Thread Simon King
Hi! On Sep 28, 12:22 am, Jaap Spies j.sp...@hccnet.nl wrote: Found this on the web: A Trillion Triangles http://www.aimath.org/news/congruentnumbers/ The article mentions that they used free software, but it is not named. In fact, according to that article, Sage is a computer at the

[sage-devel] Re: Initial support for posets

2008-04-24 Thread Simon King
Hi! I never understood why some people say lattice when they have a poset with meet and join... But i don't see the point: Would it really be difficult to live with that name conflict? I mean, certainly the two species of lattice would live in two different packages, say (just for simplicity),

[sage-devel] Re: Initial support for posets

2008-04-24 Thread Simon King
Hi William On Apr 24, 2:21 pm, William Stein [EMAIL PROTECTED] wrote: Or is it intended to have both types of lattice in sage without to explicitly import them from the corresponding package? Yes. We're only talking about the top-level global namespace. I wouldn't mind to have to load

[sage-devel] Re: ISSAC abstract

2008-04-30 Thread Simon King
Dear Michael, On Apr 30, 12:15 pm, Michael Brickenstein [EMAIL PROTECTED] wrote: I would be interested in real word use cases, which demonstrate, why such a system is needed. E.g., I think Simon king did some cool things involving at least Singular, GAP, Cython... Do you call

[sage-devel] Re: ISSAC abstract

2008-04-30 Thread Simon King
Hi, On Apr 30, 12:26 pm, David Joyner [EMAIL PROTECTED] wrote: 3. A specific example could be mentioned which smoothly integrates several systems. As Michael B suggests, a group invariant computation in a number field mixes GAP (for groups), Pari for the number field (is this correct?), and

[sage-devel] Re: ISSAC abstract

2008-04-30 Thread Simon King
Dear Martin, dear William, On Apr 30, 4:39 pm, Martin Albrecht [EMAIL PROTECTED] wrote: snip If I understood the e-mail correctly then Roman implied that at *this particular meeting* asking for contributors might be perceived as annoying? Thus he shared his opinion to help us to make the

<    1   2   3   4   5   6   7   8   9   10   >