Re: [sage-combinat-devel] Sage coding sprint in Orsay

2011-11-25 Thread Tom Boothby
I'm seriously interested in cythonizing generators. If there's funding, I'd be delighted to come and hack for a week. On Thu, Nov 24, 2011 at 8:08 AM, Vincent Delecroix 20100.delecr...@gmail.com wrote: 2011/11/24 Florent Hivert florent.hiv...@lri.fr:  I'm thinking about organizing a small

[sage-devel] Re: Fwd: C compiler in Mathematica

2011-11-25 Thread Nils Bruin
On Nov 24, 10:53 pm, Dima Pasechnik dimp...@gmail.com wrote: It's a good question how to make this capability used in Sage. This capability is already perfectly usable in Sage: sage: M=sage.calculus.calculus.maxima sage: M.eval(g(x):=block([s:0],for i thru x do s:s+i^2,s);)

Re: [sage-devel] Indexed expressions again...

2011-11-25 Thread Florent Hivert
Hi Burcin, Your example was trying to multiply two instances of the class bla. Here is what I guess you meant to write: sage: m1 = bla() sage: m2 = bla() sage: a, b = x.ind[m1],2*x.ind[m2] Traceback (most recent call last) snip in sage.symbolic.expression.Expression._add_

Re: [sage-devel] Re: Fwd: C compiler in Mathematica

2011-11-25 Thread Robert Bradshaw
On Wed, Nov 23, 2011 at 2:16 PM, rjf fate...@gmail.com wrote: Maxima compiles code to binary, and has done so, oh for a couple of decades.  Since Maxima is part of Sage, one might hope that William would be aware of this feature. In the spirit of being mutually informative, here's how it's

Re: [sage-devel] Re: Fwd: C compiler in Mathematica

2011-11-25 Thread Volker Braun
On Friday, November 25, 2011 10:33:24 AM UTC, Robert Bradshaw wrote: Note that another selling point of Cython is not just writing new (fast) code, but interfacing with existing low-level libraries in a clean way. I think thats the actual advantage of Cython. Every interpreter can dload a

[sage-devel] SAGBI bases?

2011-11-25 Thread Simon King
Hi folks! After some serach_src, it seems to me that there are no SAGBI bases in Sage. Are there plans to add them? Is there free software (with appropriate licence) that one could build upon? If I remember correctly, Nicolas Thiéry used SAGBI bases for computing invariant rings of permutation

[sage-devel] Re: SAGBI bases?

2011-11-25 Thread Maarten Derickx
Singular seems to have a function related to it: http://www.singular.uni-kl.de/Manual/3-0-3/sing_915.htm -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this

Re: [sage-devel] SAGBI bases?

2011-11-25 Thread Nicolas M. Thiery
Hi Simon, On Fri, Nov 25, 2011 at 06:58:15AM -0800, Simon King wrote: After some serach_src, it seems to me that there are no SAGBI bases in Sage. Are there plans to add them? Is there free software (with appropriate licence) that one could build upon? If I remember correctly,

Re: [sage-devel] SAGBI bases?

2011-11-25 Thread Burcin Erocal
Hi Simon, On Fri, 25 Nov 2011 06:58:15 -0800 (PST) Simon King simon.k...@uni-jena.de wrote: After some serach_src, it seems to me that there are no SAGBI bases in Sage. Are there plans to add them? Is there free software (with appropriate licence) that one could build upon? If I remember

[sage-devel] Re: problem with cython

2011-11-25 Thread David Coudert
Thank you for the solution. However, it raised questions about backward compatibility of cython... Best, David. On Nov 25, 7:54 am, Simon King simon.k...@uni-jena.de wrote: Hi David, On 25 Nov., 00:18, David Coudert david.coud...@gmail.com wrote: The following code is working perfectly

[sage-devel] Re: SAGBI bases?

2011-11-25 Thread Simon King
Hi all! Sorry, I was not aware that singular has SAGBI bases. So, I'll give the person who asked about it a corresponding pointer. Thank you Simon -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to

[sage-devel] Re: Fwd: C compiler in Mathematica

2011-11-25 Thread rjf
re: writing stubs to access C (etc) libraries from Lisp. There are several lisp programs which will take your *.h files and attempt to automatically write all the stubs. This cannot be entirely automated but my limited experience with this suggests it can be quite successful. I've linked to

Re: [sage-devel] Re: Fwd: C compiler in Mathematica

2011-11-25 Thread Alfredo Portes
On Fri, Nov 25, 2011 at 7:29 AM, Volker Braun vbraun.n...@gmail.com wrote: I think thats the actual advantage of Cython. Every interpreter can dload a library somehow. But try to mix a shared library, some custom C++ code, and the interpreter of your choice. In any commercial Ma* or Java JNI

Re: [sage-devel] Re: Fwd: C compiler in Mathematica

2011-11-25 Thread Tom Boothby
On Thu, Nov 24, 2011 at 9:25 PM, rjf fate...@gmail.com wrote: William seems to prefer to tout the Sage-Cython link. That's because we use Cython, and it's easy to use in Sage, and provides a fully-functional language-native interface between Cython and Sage. Not a single part of that is true

Re: [sage-devel] Re: Fwd: C compiler in Mathematica

2011-11-25 Thread William Stein
Sage-devel was so nice for the last few months with out Richard Fateman FUD... On Nov 25, 2011 8:13 AM, rjf fate...@gmail.com wrote: re: writing stubs to access C (etc) libraries from Lisp. There are several lisp programs which will take your *.h files and attempt to automatically write all

Re: [sage-devel] Re: Fwd: C compiler in Mathematica

2011-11-25 Thread Volker Braun
Thanks for your well-thought out contribution. I'm sure you are aware that JNA, although it sucks slightly less than JNI, doesn't support C++. So its back to writing C stubs to use instances from one object-oriented language in another object-oriented language. WTF! On Friday, November 25,

Re: [sage-devel] Re: Fwd: C compiler in Mathematica

2011-11-25 Thread Alfredo Portes
I was not trying to make any claims. My link was only for those that are not aware of JNA and usually make the claim that JNI is the only way. But I appreciate your message as it reminds me of how welcoming this list is. No WTFs needed, ignore me, and like Ted Kosan I am out of here. On Fri, Nov

[sage-devel] Re: Fwd: C compiler in Mathematica

2011-11-25 Thread rjf
We could always continue this discussion on sage-flame. I think that persons who wish to use this functionality in Maxima could consider that maybe they should just use Maxima. Exposing this functionality better from the Sage top level may be possible, but not something that I am interested in

Re: [sage-devel] Re: Fwd: C compiler in Mathematica

2011-11-25 Thread William Stein
On Nov 25, 2011 9:30 AM, Alfredo Portes doyenatc...@gmail.com wrote: I was not trying to make any claims. My link was only for those that are not aware of JNA and usually make the claim that JNI is the only way. But I appreciate your message as it reminds me of how welcoming this list is.

Re: [sage-devel] Re: Fwd: C compiler in Mathematica

2011-11-25 Thread William Stein
On Nov 25, 2011 10:18 AM, rjf fate...@gmail.com wrote: We could always continue this discussion on sage-flame. Please do. This thread should be about Mathematica and the extent to which their claim to have a compiler for arbitrary Mathematica programs is actually true. William I think that

[sage-devel] Re: Fwd: C compiler in Mathematica

2011-11-25 Thread rjf
On Nov 25, 10:28 am, William Stein wst...@gmail.com wrote: On Nov 25, 2011 10:18 AM, rjf fate...@gmail.com wrote: We could always continue this discussion on sage-flame. Please do.   This thread should be about Mathematica and the extent to which their claim to have a compiler for

[sage-devel] Re: Fwd: C compiler in Mathematica

2011-11-25 Thread Volker Braun
Poking around a bit on the wolfram web page, it seems that * Compiling C code requires a 3rd party compiler, otherwise it will fall back to mathematica byte-code * Mathematica will run the compiler for you, you only have to point Mathematica to the desired compiler. * this is new in

Re: [sage-devel] Re: Fwd: C compiler in Mathematica

2011-11-25 Thread Volker Braun
On Friday, November 25, 2011 5:30:40 PM UTC, doyen...@gmail.com wrote: I was not trying to make any claims. My link was only for those that are not aware of JNA and usually make the claim that JNI is the only way. I'm sorry if I offended you. If you would have posted the above explanation

[sage-devel] Re: Fwd: C compiler in Mathematica

2011-11-25 Thread rjf
On Nov 25, 11:30 am, Volker Braun vbraun.n...@gmail.com wrote: Poking around a bit on the wolfram web page, it seems that   * Compiling C code requires a 3rd party compiler, otherwise it will fall back to mathematica byte-code   * Mathematica will run the compiler for you, you only have to

[sage-devel] splitting long numbers in doctests

2011-11-25 Thread Nicolas M. Thiery
Hi, I have a doctest such as: sage: Partitions(10).cardinality()

[sage-devel] Re: Maxima vs Ginac numerator semantic

2011-11-25 Thread rjf
What about exp(-x)/2 ? in maxima, ratdenom says 2*exp(x) denom say 2 I gather that Ginac is more like ratdenom. But maybe Ginac simply has no way of expressing exp(-x). I assume Sage does. Have fun. RJF -- To post to this group, send an email to