Re: [sage-devel] Maple versus Mathematica

2014-11-23 Thread Jean Bétréma
Le samedi 22 novembre 2014 15:39:40 UTC+1, Nathann Cohen a écrit : > > > > I got other examples, eg trying using graphs, and discovering than > building > > a 100x100 grid was surprisingly time consuming: I am afraid that it > denotes > > basic flaws in the definition of graphs in Sage. > > Don't

Re: [sage-devel] Maple versus Mathematica

2014-11-22 Thread Harald Schilly
On Sat, Nov 22, 2014 at 3:28 PM, Jean Bétréma wrote: > Oops, imho a permutation is a very elementary object, coding it is not so > hard, Why do you come to that conclusion? I'm not so sure. > Moreover the construction > "Permutation([4,1,2,5,3])" suggests that this is the right way, and indeed:

Re: [sage-devel] Maple versus Mathematica

2014-11-22 Thread Nathann Cohen
Hello ! > sage.combinat.permutation.StandardPermutations_all_with_category.element_class > AttributeError: 'module' object has no attribute > 'StandardPermutations_all_with_category' > > I'm somewhat aware of the motivations of those who "categorize" code for > combinatorial objects, but yes I'm d

Re: [sage-devel] Maple versus Mathematica

2014-11-22 Thread Jean Bétréma
Le vendredi 21 novembre 2014 20:35:47 UTC+1, Harald Schilly a écrit : > > > > Sure this answer by Sage is less cryptic: > > > > sage: p=Permutation([4,1,2,5,3]) > > sage: type(p) > > 'sage.combinat.permutation.StandardPermutations_all_with_category.element_class'> > > > > but it prevents me (and p

Re: [sage-devel] Maple versus Mathematica

2014-11-21 Thread William Stein
On Nov 21, 2014 11:46 AM, "Dr. David Kirkby (Kirkby Microwave Ltd)" < drkir...@kirkbymicrowave.co.uk> wrote: > > > On 18 Nov 2014 22:37, "Stefan" wrote: > > > > I don't know if I simply lack the appropriate Mathematica knowledge, but years ago, when I implemented matroids > > lM = Map[If[# == 0, 0

Re: [sage-devel] Maple versus Mathematica

2014-11-21 Thread Dr. David Kirkby (Kirkby Microwave Ltd)
On 18 Nov 2014 22:37, "Stefan" wrote: > > I don't know if I simply lack the appropriate Mathematica knowledge, but years ago, when I implemented matroids > lM = Map[If[# == 0, 0, 1] &, M[[2]][[#[[2]] & /@ M[[3]], #[[2]] & /@ M[[4, {2}]; I am no expert on Mathematica, but Mathematica code does

Re: [sage-devel] Maple versus Mathematica

2014-11-21 Thread Harald Schilly
On Nov 21, 2014 5:27 PM, "Jean Bétréma" wrote: > > Le mercredi 19 novembre 2014 00:03:27 UTC+1, William a écrit : >> >> > >> > lM = Map[If[# == 0, 0, 1] &, M[[2]][[#[[2]] & /@ M[[3]], #[[2]] & /@ >> > M[[4, {2}]; >> >> Holy f*2}];ng s&/@! > > > Sure this answer by Sage is less cryptic: > > sag

Re: [sage-devel] Maple versus Mathematica

2014-11-21 Thread William Stein
- William Stein (cell phone) On Nov 21, 2014 8:27 AM, "Jean Bétréma" wrote: > > Le mercredi 19 novembre 2014 00:03:27 UTC+1, William a écrit : >> >> > >> > lM = Map[If[# == 0, 0, 1] &, M[[2]][[#[[2]] & /@ M[[3]], #[[2]] & /@ >> > M[[4, {2}]; >> >> Holy f*2}];ng s&/@! > > > Sure this answer by

Re: [sage-devel] Maple versus Mathematica

2014-11-21 Thread Jean Bétréma
Le mercredi 19 novembre 2014 00:03:27 UTC+1, William a écrit : > > > > > lM = Map[If[# == 0, 0, 1] &, M[[2]][[#[[2]] & /@ M[[3]], #[[2]] & /@ > > M[[4, {2}]; > > Holy f*2}];ng s&/@! > Sure this answer by Sage is less cryptic: sage: p=Permutation([4,1,2,5,3]) sage: type(p) but it prevent

Re: [sage-devel] Maple versus Mathematica

2014-11-18 Thread kcrisman
> > > Problems arise when thinking about more complicated mathematical >> objects. I >> > don't know if I simply lack the appropriate Mathematica knowledge, but >> years >> > ago, when I implemented matroids in Mathematica, a matroid was simply a >> list >> > with 6 elements (groundset, repr

Re: [sage-devel] Maple versus Mathematica

2014-11-18 Thread William Stein
On Tue, Nov 18, 2014 at 2:37 PM, Stefan wrote: > Problems arise when thinking about more complicated mathematical objects. I > don't know if I simply lack the appropriate Mathematica knowledge, but years > ago, when I implemented matroids in Mathematica, a matroid was simply a list > with 6 elemen

Re: [sage-devel] Maple versus Mathematica

2014-11-18 Thread Harald Schilly
On Tue, Nov 18, 2014 at 11:37 PM, Stefan wrote: > Problems arise when thinking about more complicated mathematical objects. This is also my main argument ... The core point is, that Python allows you to define higher-level data-types, which are some combination of data structures and convey a sem

Re: [sage-devel] Maple versus Mathematica

2014-11-18 Thread Stefan
Problems arise when thinking about more complicated mathematical objects. I don't know if I simply lack the appropriate Mathematica knowledge, but years ago, when I implemented matroids in Mathematica, a matroid was simply a list with 6 elements (groundset, representation matrix, and I forget wh

Re: [sage-devel] Maple versus Mathematica

2014-11-18 Thread William Stein
On Tue, Nov 18, 2014 at 2:17 PM, Dan Drake wrote: > On Tue, 18 Nov 2014 at 01:34PM -0800, William Stein wrote: >> When arguing for Maple's language over the Mathematica language, they >> say "Functional programs are often opaque; most people, even >> experienced programmers, find functional-style

Re: [sage-devel] Maple versus Mathematica

2014-11-18 Thread Dan Drake
On Tue, 18 Nov 2014 at 01:34PM -0800, William Stein wrote: > When arguing for Maple's language over the Mathematica language, they > say "Functional programs are often opaque; most people, even > experienced programmers, find functional-style programs to be > significantly harder to write, read, a

[sage-devel] Maple versus Mathematica

2014-11-18 Thread William Stein
See this interesting document: http://www.maplesoft.com/products/maple/compare/HowMapleComparestoMathematica.pdf It would be valuable to our users (and potential users) if we had a similar document which explains and *argues* for why we believe our approach to mathematical software is better