On Tue, Nov 18, 2014 at 2:37 PM, Stefan <stefanvanz...@gmail.com> 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 elements (groundset, representation matrix, and I forget what else)
> and head Matroid. To access the elements of that list, you did stuff like
> this:
>
> lM = Map[If[# == 0, 0, 1] &, M[[2]][[#[[2]] & /@ M[[3]], #[[2]] & /@
> M[[4]]]], {2}];

Holy f*2}];ng s&/@!

>
> I don't miss that aspect of Mathematica one bit! Python objects are so much
> nicer, and we still get lambda functions when we need them.
>
> Also, it might be experience, but I spent WAY more time debugging my
> Mathematica code than debugging my Python code.
>
> --
> 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.



-- 
William Stein
Professor of Mathematics
University of Washington
http://wstein.org

-- 
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.

Reply via email to