Re: [sage-devel] Oneliners

2014-12-03 Thread Nathann Cohen
Hello !

> So should we get rid of at least first one? I think no, but how about
> others?

Well, I do not know about others but is_connected is "not exactly" a
one-liner from user perspective.

The function calls self._hasse_diagram.is_connected() while an user would
call P.hasse_diagram().is_connected(). That triggers a useless *copy* of
self._hasse_diagram. And there is no reason to pay for that.

Nathann

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] PyClaw

2014-12-03 Thread David Joyner
On Wednesday, December 3, 2014, Thierry Dumont 
wrote:

> I would like to know if anybody tried to install PyClaw in Sage.
>
> http://www.clawpack.org/doc/pyclaw/
>
> I am interested, and I propose to make an spkg.


I didn't try but know people who are also interested, so please post to
this list if/when you create the spkg.


>
> Yours
>
> t.d.
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-devel+unsubscr...@googlegroups.com .
> To post to this group, send email to sage-devel@googlegroups.com
> .
> Visit this group at http://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] PyClaw

2014-12-03 Thread Thierry
Hi,

perhaps this does not even require maintaining a spkg, does the following
work ?

sage -i pip
sage -pip install clawpack

Ciao,
Thierry


On Wed, Dec 03, 2014 at 08:41:35AM +0100, Thierry Dumont wrote:
> I would like to know if anybody tried to install PyClaw in Sage.
> 
> http://www.clawpack.org/doc/pyclaw/
> 
> I am interested, and I propose to make an spkg.
> 
> Yours
> 
> t.d.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sage-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-devel@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.

> begin:vcard
> fn:Thierry  Dumont
> n:Dumont;Thierry 
> org;quoted-printable;quoted-printable:CNRS & Universit=C3=A9 Lyon 1 (UMR 
> 5208).;Institut Camille  Jordan - Math=C3=A9matiques -
> adr:;;43, Bd. du 11 Novembre;Villeurbanne;;69622 Cedex;France
> email;internet:tdum...@math.univ-lyon1.fr
> tel;work:+33 (0)4 72 44 85 23
> tel;fax:+33 (0)4 72 43 16 87 
> x-mozilla-html:FALSE
> url:http://math.univ-lyon1.fr/~tdumont
> version:2.1
> end:vcard
> 

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Oneliners

2014-12-03 Thread 'Martin R' via sage-devel
I'm trying to get a more precise notion of "one-liner" and understand 
better which one-liners should not be in the library.  At first I thought 
it might be:

"a function which is a composition of at most two 'user space' functions"

but as Nathann just wrote, this is not correct for P.is_connected() vs. 
P.hasse_diagram().is_connected(), because the latter does more computation.

It seems to me that this is related to having generic vs. more specific 
implementations.  Eg., we can always compute a determinant, but for some 
fields we can compute it more quickly.  In this case, we do not expect that 
the user knows about these better algorithms, the library simply does what 
is best.
However, this (that the user need not know) implies, that we actually 
always want the method to be available directly (i.e., is_connected should 
indeed be a method of posets) even if at the moment there is no better 
algorithm known.

That said, it also appears to me that having P.to_partition() is possibly 
not strictly necessary (apart from the name being ambiguous).  But I cannot 
pinpoint why.  If to_partition were something canonical, then, from a 
user's perspective, I'd expect it to be available as a coercion, like 
"Partition(P)", but that's not the case here...

Martin

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] Re: coeffs() & coefficients()

2014-12-03 Thread Ralf Stephan
Sorry, a bit late. I also agree with removing *coeffs* and referring to 
*list *in the documentation of *coefficients*. 

What's more, the issue comes up with symbolic expressions too, where 
*coeffs *is an alias of* coefficients*, and there is no list function. This 
would be the perfect opportunity to unify methods over both symbolic, poly, 
and series rings, so, as it appears agreement was reached, I have opened a 
ticket for the symbolics part for

 * adding a `sparse` parameter to `Expression.coefficients()`, default 
`True`
 * removing/deprecating the `coeff` and `coeffs` aliases
 * implement `Expression.list()`, simply calling 
`coefficients(sparse=False)`

http://trac.sagemath.org/ticket/17438

Can the coeffs alias be immediately removed? Is a deprecation of an alias 
needed?

Regards,

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] PyClaw

2014-12-03 Thread Thierry Dumont
Le 03/12/2014 09:35, Thierry a écrit :
> Hi,
> 
> perhaps this does not even require maintaining a spkg, does the following
> work ?
> 
> sage -i pip
> sage -pip install clawpack
> 
> Ciao,
> Thierry
> 
may be.

But is it the good way to do?
Is it not better to have an uniform method for installing things?

I can make an spkg which makes only "sage -pip install clawpack" (+ what
is necessary to do to build an spkg). An advantage would be to have
better compatiblity: PyClaw uses matplotblib, an there may be
compartibility problems...

What do you think about that?

t.
> 
> On Wed, Dec 03, 2014 at 08:41:35AM +0100, Thierry Dumont wrote:
>> I would like to know if anybody tried to install PyClaw in Sage.
>>
>> http://www.clawpack.org/doc/pyclaw/
>>
>> I am interested, and I propose to make an spkg.
>>
>> Yours
>>
>> t.d.
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "sage-devel" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to sage-devel+unsubscr...@googlegroups.com.
>> To post to this group, send email to sage-devel@googlegroups.com.
>> Visit this group at http://groups.google.com/group/sage-devel.
>> For more options, visit https://groups.google.com/d/optout.
> 
>> begin:vcard
>> fn:Thierry  Dumont
>> n:Dumont;Thierry 
>> org;quoted-printable;quoted-printable:CNRS & Universit=C3=A9 Lyon 1 (UMR 
>> 5208).;Institut Camille  Jordan - Math=C3=A9matiques -
>> adr:;;43, Bd. du 11 Novembre;Villeurbanne;;69622 Cedex;France
>> email;internet:tdum...@math.univ-lyon1.fr
>> tel;work:+33 (0)4 72 44 85 23
>> tel;fax:+33 (0)4 72 43 16 87 
>> x-mozilla-html:FALSE
>> url:http://math.univ-lyon1.fr/~tdumont
>> version:2.1
>> end:vcard
>>
> 

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.
<>

[sage-devel] Re: About Graph.to_partition and Poset.to_graph

2014-12-03 Thread Dima Pasechnik
On 2014-12-02, Travis Scrimshaw  wrote:
[...]
> Also I cannot 
> emphasize sufficiently that not all Sage users who use the graph code are 
> graph theorists.
Sure, the latter is an excellent defence for names like nchoosek...
Do these people also describe car wheels as "these round things that can
rotate"?

Seriosly, there is often an established way to call things, and let's not
reinvent wheels, poorly...

Dima

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] Re: PyClaw

2014-12-03 Thread Simon King
Hi Thierry,

On 2014-12-03, Thierry Dumont  wrote:
>> sage -i pip
>> sage -pip install clawpack
>
> But is it the good way to do?
> Is it not better to have an uniform method for installing things?

I think I remember some people said that thie *should* become the
default way of installing most of the things, namely all things that
work out of the box and do not need to be patched for Sage.

Best regards,
Simon


-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: Maple versus Mathematica

2014-12-03 Thread Eric Gourgoulhon
Hi

Le mardi 2 décembre 2014 22:43:34 UTC+1, maldun a écrit :

>
>1. Python: One could always argue about the language itself, but in 
>contrast to the others Sage uses a general purpose language. So it easy to 
>combine Sage with other programs (Ever build standalone Programs with the 
>others?)
>
> IMHO, this is a very good point in favor of Sage (in addition of being 
open-source of course!). Especially today, most students are familiar with 
Python (sometimes this is even the only programming language they know). 
For instance, in France, since 2 years, Python has been chosen as the 
mandatory language to learn programming in the math prep schools ("classes 
préparatoires aux grandes écoles 
").
 
This involves 49,000 students (~ 18-20 years old), who are preparing 
concourses for engineering schools and "grandes écoles" like Ecole Normale 
Supérieure, in order to become researchers (math, physics, chemistry), 
teachers or engineers.

Eric.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] PyClaw

2014-12-03 Thread David Joyner
On Wed, Dec 3, 2014 at 3:35 AM, Thierry  wrote:
> Hi,
>
> perhaps this does not even require maintaining a spkg, does the following
> work ?
>
> sage -i pip
> sage -pip install clawpack
>


Didn't work for me (mac OS 10.10) but for the people I know that would
be interested, maybe having it installed on the cloud would be better
anyway?


> Ciao,
> Thierry
>
>
> On Wed, Dec 03, 2014 at 08:41:35AM +0100, Thierry Dumont wrote:
>> I would like to know if anybody tried to install PyClaw in Sage.
>>
>> http://www.clawpack.org/doc/pyclaw/
>>
>> I am interested, and I propose to make an spkg.
>>
>> Yours
>>
>> t.d.
>>
>> --
>> You received this message because you are subscribed to the Google Groups 
>> "sage-devel" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to sage-devel+unsubscr...@googlegroups.com.
>> To post to this group, send email to sage-devel@googlegroups.com.
>> Visit this group at http://groups.google.com/group/sage-devel.
>> For more options, visit https://groups.google.com/d/optout.
>
>> begin:vcard
>> fn:Thierry  Dumont
>> n:Dumont;Thierry
>> org;quoted-printable;quoted-printable:CNRS & Universit=C3=A9 Lyon 1 (UMR 
>> 5208).;Institut Camille  Jordan - Math=C3=A9matiques -
>> adr:;;43, Bd. du 11 Novembre;Villeurbanne;;69622 Cedex;France
>> email;internet:tdum...@math.univ-lyon1.fr
>> tel;work:+33 (0)4 72 44 85 23
>> tel;fax:+33 (0)4 72 43 16 87
>> x-mozilla-html:FALSE
>> url:http://math.univ-lyon1.fr/~tdumont
>> version:2.1
>> end:vcard
>>
>
> --
> You received this message because you are subscribed to the Google Groups 
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sage-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-devel@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: PyClaw

2014-12-03 Thread Thierry Dumont
Le 03/12/2014 11:32, Simon King a écrit :
> Hi Thierry,
> 
> On 2014-12-03, Thierry Dumont  wrote:
>>> sage -i pip
>>> sage -pip install clawpack
>>
>> But is it the good way to do?
>> Is it not better to have an uniform method for installing things?
> 
> I think I remember some people said that thie *should* become the
> default way of installing most of the things, namely all things that
> work out of the box and do not need to be patched for Sage.
> 
> Best regards,
> Simon
> 
> 


The sage -pip seems for me a bit dangerous: may be some installation
will work out of the box with sage 6.x and python_package 18.y and no
more with any other values of x and y. No?
The spkg method allows to freeze versions. I think we have this at many
places in sage (at least I often read -here- about switching to a new
version of say, Singular and problems related to such change.

But ok, I'll do what the chief will propose :-)

t.

yours
t.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.
<>

Re: [sage-devel] Re: About Graph.to_partition and Poset.to_graph

2014-12-03 Thread Vincent Delecroix
Since you are working on it, I really like better

Graph.connected_components_sizes()

rather than

Graph.connected_components_sizes_partition()

Otherwise you should chage

Graph.connected_components_number()

to

Graph.connected_components_number_integer()

The output can be sorted to look like a partition but it is not clear
why it should be a Partition instance. I guess that my preference
would be

def connected_components_sizes(self):
return sorted((len(cc) for cc in self.connected_components()), reverse=True)

Vincent

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: PyClaw

2014-12-03 Thread Vincent Delecroix
Hi Thierrys,

You can freeze version with pip

pip install pyclaw=WHATEVER_VERSION

and the advantage is that there is no package to maintain and the sage
side. It is also possible to ask pip to download the tarball in
SAGE_SRC/upstream and install it later. It is easily customized to all
kind of purposes. The advantage of using it is that many people create
packages for it and we do not have to reinvent the wheel...

It is a problem that it does not work on some mac OS X (could we have
more info?). If you aim to create a package, I just would like to
recall that libsoup that we ship as a spkg is just terribly outdated
(and pip works like a charm). And it is not an isolated example.

Best
Vincent

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] PyClaw

2014-12-03 Thread Harald Schilly


On Wednesday, December 3, 2014 12:09:54 PM UTC+1, David Joyner wrote:
>
> maybe having it installed on the cloud would be better 
> anyway? 
>

It should be installed on SMC for some time now. Not sure how to to test it?

Well, just tried their first example, seems like it crashes. No idea :(

-- Harald

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] Re: Sage.app binary problems

2014-12-03 Thread kcrisman



The 6.4 binary did not build the app version, but we fixed that for 6.4.1. 
> The latter are different.
>

Correct - but notice the OP asked about the *10.9* binaries, not 10.10 or 
10.7.  And those are the ones I reference below, which have the same hash, 
and are still at Sage version 6.4.

 

> I can't do that since I don't have a recent enough OS X, *but* the MD5 
>> hashes are the same, according to the download page.
>>
>> *sage-6.4-x86_64-Darwin-OSX_10.9_x86_64.dmg* 
>> 
>> torrent 
>> MD5:
>>  
>> 4230f47747ca48a43ae13ced9580bb37
>> *sage-6.4-x86_64-Darwin-OSX_10.9_x86_64-app.dmg* 
>> 
>> torrent 
>> MD5:
>>  
>> 4230f47747ca48a43ae13ced9580bb37
>>
>>  
>>
>
Stephane, if you are reading this, is Samuel correct in assuming you meant 
that both downloads are the non-app bundle version, just the command line 
version?  You may be able to use the 10.7 app version in them meantime. 

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] Re: Sage.app binary problems

2014-12-03 Thread Volker Braun
The 10.9 binaries were built on 10.10, too. They should just be removed. 

Harald? can you delete sage-6.4-x86_64-Darwin-OSX_10.9_x86_64* from the 
mirrors?


On Wednesday, December 3, 2014 1:58:08 PM UTC, kcrisman wrote:
>
> Stephane, if you are reading this, is Samuel correct in assuming you meant 
> that both downloads are the non-app bundle version, just the command line 
> version?  You may be able to use the 10.7 app version in them meantime. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] Re: Sage.app binary problems

2014-12-03 Thread Harald Schilly
On Wed, Dec 3, 2014 at 3:02 PM, Volker Braun  wrote:
> Harald? can you delete sage-6.4-x86_64-Darwin-OSX_10.9_x86_64* from the
> mirrors?


ok, they are gone.

-- Harald

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: About Graph.to_partition and Poset.to_graph

2014-12-03 Thread Viviane Pons
My comment on this:

* Findstat does not need such methods to be in sage (anymore), as we
actually define our own maps outside of Sage (for the good of FindStat and
for the bad of Sage in my opinion) so at least, no one can be accused of
being partial

* If a method exists somewhere and has been there for some time, I don't
see why it should be removed: I don't see any negative impact of the method
being there. The idea of building some kind of global semantic map of
relations between combinatorial objects has not been completely dropped out
and I still think it would be a good thing to have. In this context, such a
method would make sense.

About the name, I have no specific opinion.

This being said. I have no interest in these methods in particular. I just
wanted to make it clear that Findstat was completely our of the debate.

Best,

Viviane


2014-12-03 12:23 GMT+01:00 Vincent Delecroix <20100.delecr...@gmail.com>:

> Since you are working on it, I really like better
>
> Graph.connected_components_sizes()
>
> rather than
>
> Graph.connected_components_sizes_partition()
>
> Otherwise you should chage
>
> Graph.connected_components_number()
>
> to
>
> Graph.connected_components_number_integer()
>
> The output can be sorted to look like a partition but it is not clear
> why it should be a Partition instance. I guess that my preference
> would be
>
> def connected_components_sizes(self):
> return sorted((len(cc) for cc in self.connected_components()),
> reverse=True)
>
> Vincent
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-devel@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] PyClaw

2014-12-03 Thread David Joyner
On Wed, Dec 3, 2014 at 3:35 AM, Thierry  wrote:
> Hi,
>
> perhaps this does not even require maintaining a spkg, does the following
> work ?
>
> sage -i pip
> sage -pip install clawpack
>

This doesn't work for me using ubuntu linux and sage6.4.rc0 built from source.
It says sage -pip is unrecognized. This is after installing pip and
running make.

On the mac OS 10.10 failure: I used a binary version of Sage, with the
latest Xcode
installed.


> Ciao,
> Thierry
>
>
> On Wed, Dec 03, 2014 at 08:41:35AM +0100, Thierry Dumont wrote:
>> I would like to know if anybody tried to install PyClaw in Sage.
>>
>> http://www.clawpack.org/doc/pyclaw/
>>
>> I am interested, and I propose to make an spkg.
>>
>> Yours
>>
>> t.d.
>>
>> --
>> You received this message because you are subscribed to the Google Groups 
>> "sage-devel" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to sage-devel+unsubscr...@googlegroups.com.
>> To post to this group, send email to sage-devel@googlegroups.com.
>> Visit this group at http://groups.google.com/group/sage-devel.
>> For more options, visit https://groups.google.com/d/optout.
>
>> begin:vcard
>> fn:Thierry  Dumont
>> n:Dumont;Thierry
>> org;quoted-printable;quoted-printable:CNRS & Universit=C3=A9 Lyon 1 (UMR 
>> 5208).;Institut Camille  Jordan - Math=C3=A9matiques -
>> adr:;;43, Bd. du 11 Novembre;Villeurbanne;;69622 Cedex;France
>> email;internet:tdum...@math.univ-lyon1.fr
>> tel;work:+33 (0)4 72 44 85 23
>> tel;fax:+33 (0)4 72 43 16 87
>> x-mozilla-html:FALSE
>> url:http://math.univ-lyon1.fr/~tdumont
>> version:2.1
>> end:vcard
>>
>
> --
> You received this message because you are subscribed to the Google Groups 
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sage-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-devel@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] PyClaw

2014-12-03 Thread David Joyner
On Wed, Dec 3, 2014 at 8:37 AM, Harald Schilly  wrote:
>
>
> On Wednesday, December 3, 2014 12:09:54 PM UTC+1, David Joyner wrote:
>>
>> maybe having it installed on the cloud would be better
>> anyway?
>
>
> It should be installed on SMC for some time now. Not sure how to to test it?
>
> Well, just tried their first example, seems like it crashes. No idea :(
>

Same here. On SMC, I tried running the code on
http://www.clawpack.org/doc/pyclaw/tutorial.html
and ran into an error on the line
domain = pyclaw.Domain([-1.0], [1.0], [200])


> -- Harald
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-devel@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] PyClaw

2014-12-03 Thread Harald Schilly
On Wed, Dec 3, 2014 at 3:35 PM, David Joyner  wrote:
> On Wed, Dec 3, 2014 at 8:37 AM, Harald Schilly  
> wrote:
>> Well, just tried their first example, seems like it crashes. No idea :(
>>
>
> Same here.

On SMC we all sit in the same boat. Either it works or it breaks for
everyone. I think it is related to OpenMPI (and that forking that way
is not supported in that virtual machine).

Does anyone know more about open mpi in a virtualized machine -- or
alternatively -- how to tell clawpack's python package to not compile
with mpi support? (in the hopes that this solved this problem)

-- Harald

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] Re: coeffs() & coefficients()

2014-12-03 Thread Samuel Lelievre

2014-12-03 10:27:53 UTC+1, Ralf Stephan wrote:
>
> Sorry, a bit late. I also agree with removing *coeffs* and referring to 
> *list *in the documentation of *coefficients*. 
>
> What's more, the issue comes up with symbolic expressions too, where 
> *coeffs *is an alias of* coefficients*, and there is no list function. 
> This would be the perfect opportunity to unify methods over both symbolic, 
> poly, and series rings, so, as it appears agreement was reached, I have 
> opened a ticket for the symbolics part for
>
>  * adding a `sparse` parameter to `Expression.coefficients()`, default 
> `True`
>  * removing/deprecating the `coeff` and `coeffs` aliases
>  * implement `Expression.list()`, simply calling 
> `coefficients(sparse=False)`
>
> http://trac.sagemath.org/ticket/17438 
> 
>
> Can the coeffs alias be immediately removed? Is a deprecation of an alias 
> needed?
>

Not so fast!

First, not all expressions are polynomial expressions!

Also, why such a hurry to remove stuff immediately?
What's the harm in deprecating first?

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] PyClaw

2014-12-03 Thread Thierry
Hi,

On Wed, Dec 03, 2014 at 09:30:12AM -0500, David Joyner wrote:
> On Wed, Dec 3, 2014 at 3:35 AM, Thierry  
> wrote:
> > Hi,
> >
> > perhaps this does not even require maintaining a spkg, does the following
> > work ?
> >
> > sage -i pip
> > sage -pip install clawpack
> >
> 
> This doesn't work for me using ubuntu linux and sage6.4.rc0 built from source.
> It says sage -pip is unrecognized. This is after installing pip and
> running make.

The "sage -pip" command was merged in sage6.4.rc1. What you can try with
rc0: 

sage -sh
pip install clawpack
exit

> On the mac OS 10.10 failure: I used a binary version of Sage, with the
> latest Xcode
> installed.

I do not kno OSX, but gfortran is a dependency of clawpack, so perhaps you
can try to do "sage -i gcc" first.

Ciao,
Thierry

 

> 
> 
> > Ciao,
> > Thierry
> >
> >
> > On Wed, Dec 03, 2014 at 08:41:35AM +0100, Thierry Dumont wrote:
> >> I would like to know if anybody tried to install PyClaw in Sage.
> >>
> >> http://www.clawpack.org/doc/pyclaw/
> >>
> >> I am interested, and I propose to make an spkg.
> >>
> >> Yours
> >>
> >> t.d.
> >>
> >> --
> >> You received this message because you are subscribed to the Google Groups 
> >> "sage-devel" group.
> >> To unsubscribe from this group and stop receiving emails from it, send an 
> >> email to sage-devel+unsubscr...@googlegroups.com.
> >> To post to this group, send email to sage-devel@googlegroups.com.
> >> Visit this group at http://groups.google.com/group/sage-devel.
> >> For more options, visit https://groups.google.com/d/optout.
> >
> >> begin:vcard
> >> fn:Thierry  Dumont
> >> n:Dumont;Thierry
> >> org;quoted-printable;quoted-printable:CNRS & Universit=C3=A9 Lyon 1 (UMR 
> >> 5208).;Institut Camille  Jordan - Math=C3=A9matiques -
> >> adr:;;43, Bd. du 11 Novembre;Villeurbanne;;69622 Cedex;France
> >> email;internet:tdum...@math.univ-lyon1.fr
> >> tel;work:+33 (0)4 72 44 85 23
> >> tel;fax:+33 (0)4 72 43 16 87
> >> x-mozilla-html:FALSE
> >> url:http://math.univ-lyon1.fr/~tdumont
> >> version:2.1
> >> end:vcard
> >>
> >
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "sage-devel" group.
> > To unsubscribe from this group and stop receiving emails from it, send an 
> > email to sage-devel+unsubscr...@googlegroups.com.
> > To post to this group, send email to sage-devel@googlegroups.com.
> > Visit this group at http://groups.google.com/group/sage-devel.
> > For more options, visit https://groups.google.com/d/optout.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sage-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-devel@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] Re: coeffs() & coefficients()

2014-12-03 Thread john_perry_usm
Sorry for the delay in replying; as noted earlier, I've been traveling. I 
agree with Samuel; it's important to deprecate first. Some of us run 
scripts that will break if you simply remove the command, but a deprecation 
warning both allows the script to keep running and (if it's a good warning) 
suggests a solution that helps us move on.

Will the ticket you've opened also deal with multivariate polynomial 
ideals, or are you working on symbolic expressions only? Just so I know 
whether to open a new ticket (probably sometime next week; still 
traveling...)

john perry

On Wednesday, December 3, 2014 10:27:53 AM UTC+1, Ralf Stephan wrote:
>
> Sorry, a bit late. I also agree with removing *coeffs* and referring to 
> *list *in the documentation of *coefficients*. 
>
> What's more, the issue comes up with symbolic expressions too, where 
> *coeffs *is an alias of* coefficients*, and there is no list function. 
> This would be the perfect opportunity to unify methods over both symbolic, 
> poly, and series rings, so, as it appears agreement was reached, I have 
> opened a ticket for the symbolics part for
>
>  * adding a `sparse` parameter to `Expression.coefficients()`, default 
> `True`
>  * removing/deprecating the `coeff` and `coeffs` aliases
>  * implement `Expression.list()`, simply calling 
> `coefficients(sparse=False)`
>
> http://trac.sagemath.org/ticket/17438
>
> Can the coeffs alias be immediately removed? Is a deprecation of an alias 
> needed?
>
> Regards,
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: coeffs() & coefficients()

2014-12-03 Thread Ralf Stephan
I *did ask if I should deprecate, I just wasn't sure if we can deprecate
the alias.

On Wed Dec 03 2014 at 4:10:25 PM john_perry_usm  wrote:

> Will the ticket you've opened also deal with multivariate polynomial
> ideals, or are you working on symbolic expressions only?
>
 Yes. It's almost always better to split such tickets.

Note that Laurent polys don't have list() but have valuation(), so list()
would be useful to have.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: Maple versus Mathematica

2014-12-03 Thread mmarco
I am not sure if it is also available in the M's, or if they have some 
other system to guide the user to the functions he wants to use, but for 
me, tab-completion is a great feature in Sage.


El martes, 2 de diciembre de 2014 22:43:34 UTC+1, maldun escribió:
>
> The emphasis lies on 'trying' Concerning image processing and control 
> theory matlab is prefered by most with good reason (for reference: I come 
> from these areas)
> Since numpy/scipy/matplotlib is on board with Sage, it can easily 
> challenge Mathematica in these areas, since the scipy packages can compare 
> quite good with
> Matlab. And I dare say that sage can easily outsmart the symbolic toolbox 
> of Matlab.
>
> On another note: Sage comes with Cython (and of course other 
> possibilities) which is much smarter than MEX from matlab concerning low 
> level programming for fast code.
> And I remember well that a colleague of mine switched very fast to 
> Numpy/Cython, because he got sick of MEX files.
> A comparison between MEX and Cython would also be a good point.
>
> I suppose some direct use cases where Sage is directly compared to the 
> other 4Ms and shows why it is better suited, would be important to such a 
> comparison.
> Some of the formentioned things above are some reasons why at least I 
> prefer Sage over Matlab and Mathematica. 
> Maybe it would be a good Idea to collect some more concrete examples?
>
> A short list of other strong points besides the one from above
>
>
>1.  The price: Of course
>2. Open
>3. Covers broad functionality
>4. Expandable: It is easy to build Sage packages and expand it's 
>functionality.
>5. The Notebook: It is easy to use, and has very nice typesetting 
>(compared to Mathematica it is far better I think; this could also be in a 
>comparison)
>6. Python: One could always argue about the language itself, but in 
>contrast to the others Sage uses a general purpose language. So it easy to 
>combine Sage with other programs (Ever build standalone Programs with the 
>others?)
>7. Most important Python packages for Math ready to go
>8. A nice community
>9. The price!
>10. ...
>
> Has someone more examples why he/she uses Sage instead of one of the 4Ms? 
>
> Maybe a survey along the users would be also good Idea? This could extend 
> the list,
> and maybe would at least be a start.
>
>
> On Monday, December 1, 2014 6:27:56 AM UTC+1, Dr. David Kirkby (Kirkby 
> Microwave Ltd) wrote:
>>
>> On 27 Nov 2014 20:51, "maldun"  wrote:
>>
>> > I personally a comparison of sage with the other Systems is quite hard, 
>> since all of the other 4Ms concentrate more or less
>> > on particular fields of mathematic (e.g. Matlab focus on numerics, 
>> Mathematica more on Calculus etc.)
>> > Sage is far from perfect but tries to cover all fields at once.
>>
>> Although I have never tested it myself,  several sources say Mathematica 
>> is the best program for symbolic maths.  
>>
>> But to me at least Mathematica covers a very wide area of mathematics. 
>> Inage processing,  control theory,  number theory, numerics, financial etc. 
>> I think it tries to cover pretty much everything.  
>>
>> I believe any attempt to compare the packages would be very difficult and 
>> I doubt it is possible to remove personal bias. 
>>
>> It is totally objective to say Sage is free, whereas neither Mathematica 
>> or MATLAB are. But just about other comparison else is going to be 
>> subjective. 
>>
>> Dave.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: About Graph.to_partition and Poset.to_graph

2014-12-03 Thread Vincent Delecroix
Hi Vivianne,

2014-12-03 15:07 UTC+01:00, Viviane Pons :
> My comment on this:
>
> * Findstat does not need such methods to be in sage (anymore), as we
> actually define our own maps outside of Sage (for the good of FindStat and
> for the bad of Sage in my opinion) so at least, no one can be accused of
> being partial
>
> * If a method exists somewhere and has been there for some time, I don't
> see why it should be removed: I don't see any negative impact of the method
> being there. The idea of building some kind of global semantic map of
> relations between combinatorial objects has not been completely dropped out
> and I still think it would be a good thing to have. In this context, such a
> method would make sense.

These are two different things:
 - having methods
 - having maps between combinatorial objects
I do not see why one should depend on the other. And there is an
argument for not having too much method on a given class: readability.

Vincent

PS: Not speaking about Findstat, you know that I worked a bit to
propose something for the database of combinatorial maps (see #16408).
I receive exactly 0 answer since then... and it was 6 months ago.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: About Graph.to_partition and Poset.to_graph

2014-12-03 Thread Viviane Pons
> Vincent
>
> PS: Not speaking about Findstat, you know that I worked a bit to
> propose something for the database of combinatorial maps (see #16408).
> I receive exactly 0 answer since then... and it was 6 months ago.
>

I know, I still find it a very interesting project but months go quickly
and I have many projects. Also, I must say that my motivation to concretely
work on this kind of dropped when we decided to use something completely
different on FindStat (we define our own maps now and we have our own
version of what you proposed). I didn't take this decision myself, it was
taken and done shortly after you made your proposition. From the FindStat
point of view, it's quite good because it makes life much easier for us,
but I really think it's a loss for Sage.

Anyway, about the original question. My opinion is that these methods could
be properly renamed and useful. But it's only my opinion and I won't spend
time arguing about it, it's really not something crucial for me.

Best

Viviane



>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-devel@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: possible issue with DiGraph in interval fields

2014-12-03 Thread Vincent Delecroix
2014-12-03 3:24 UTC+01:00, Nathann Cohen :
>> sage: a = CIF(RIF(0, 1), RIF(0, 1))
>> sage: a is a
>> True
>> sage: a == a
>> False
>>
>> So equality is not even reflexive.
>
> Okay. Please never define a graph with these things as vertices :-D

+1

And for better behavior, we need troolean = {True, False, Unknown}

In CIF it should be

a == b returns
  - True if they are the same interval
  - False if they are disjoint
  - Unknown otherwise

and then a != b would just be equivalent to "not (a == b)"... and
still the no "false positive".

Vincent

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] Sage listed as "free math analysis & design tool for engineers" in retimes

2014-12-03 Thread john_perry_usm
here's the link, for those interested

  
  
http://www.eetimes.com/document.asp?page_number=1&doc_id=1322836&image_number=2

regards
john perry

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] abs(matrix)

2014-12-03 Thread Vincent Delecroix
Hello,

abs(matrix) is currently returning the determinant (and this goes back
to the early implementation in 2006!). If anybody contests the fact
that it should return the matrix whose entries are the absolute value
of the initial matrix, please tell me.

Otherwise, #17443 needs review.

Vincent

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.