57,447 reputation
5163256
bio website mathprogramming-intro.org
location St. Petersburg, Russia
age 37
visits member for 2 years, 8 months
seen 5 hours ago

Ok, an obligatory note: opinions expressed here are mine and not those of my employer.


Dec
20
revised Special Mathematica Cell to work with R code
deleted 6 characters in body
Dec
20
revised Special Mathematica Cell to work with R code
added 251 characters in body
Dec
20
answered Special Mathematica Cell to work with R code
Dec
19
comment Do you know of any web-based university course that is entirely Mathematica based?
Such courses may exist here and there, but mostly created by professors who are at the same time expert Mathematica users / programmers. I know of only one reference of the kind you look for: Math Desktop software (and it is not web-shared). I am sure others will add more links. But my point is, I am not aware of any general framework for this, and creating a complete such solution in Mathematica requires a very significant programming effort. But I agree that M still is an ideal patform for such things.
Dec
19
awarded  Guru
Dec
19
awarded  Enlightened
Dec
19
awarded  Nice Answer
Dec
19
comment Unexpected result from Flatten
@m_goldberg Was glad to help, and thanks for the accept.
Dec
19
answered Unexpected result from Flatten
Dec
18
comment How can we extend the predictive interface so it can suggest new operations?
Perhaps it is a good idea. I was not sure whether or not yours is a dupe, from the start. Let's see what others think.
Dec
18
comment How can we extend the predictive interface so it can suggest new operations?
Is this the same question as this one?
Dec
18
comment Any built-in function to generate successive sublists from a list?
@rcollyer I did not benchmark (FoldList), but I don't expect them (differences) to be very significant.
Dec
18
comment Any built-in function to generate successive sublists from a list?
@rcollyer I don't consider myself good at them either, just OK. The problem is that Mathematica's execution model often creates rather unnatural preferences for the algorithms implementations. But recursion is very powerful. Actually, I don't know what I would do without it for many problems. It was very important ingredient for RLink, for one thing.
Dec
18
comment Any built-in function to generate successive sublists from a list?
I think @kguler's use of ReplaceList is very elegant. For generic lists, should be quite fast. For packed arrays, Join and Append should be faster, since ReplaceList can not make use of those and will likely unpack.
Dec
18
comment Any built-in function to generate successive sublists from a list?
I think that most of us like list manipulation because M has an outstanding support for them, so that our programming flow can be very smooth. For a number of other things (handling state, implementing data structures with certain characteristics, scaling codebase to larger size, etc), the support is perhaps not so great, so one has to overcome significant mental barriers and these topics are less attractive to most M users. But this is what interests me more at present, since this is what stands in my way.
Dec
18
comment Any built-in function to generate successive sublists from a list?
Actually, @rcollyer posted it, so problem solved :). Re: gold badge - I've got one already, on SO :). Seriously, I am much less interested in list manipulations in Mathematica now than I used to be. I found that things that make it hard for me personally to code in M are mostly elsewhere (and it is not always obvious what they are, for a given problem).
Dec
18
comment Any built-in function to generate successive sublists from a list?
Ok, since you posted this, I am liberated from doing that (I gave it in comments to the question), and can happily upvote : +1.
Dec
18
comment Any built-in function to generate successive sublists from a list?
@rm-rf Somehow I did not expect so much excitement about this topic, so many answers. I could as well post it indeed. Perhaps I will. But my solution suffers from the same flaw as others.
Dec
18
comment Any built-in function to generate successive sublists from a list?
@rcollyer Be careful with MapAt though.
Dec
18
comment Any built-in function to generate successive sublists from a list?
+1. But the real clean solution here is to use linked lists, since all of the suggested ones have quadratic complexity in the length of the list.