11,364 reputation
12456
bio website
location
age 28
visits member for 2 years, 7 months
seen Oct 18 at 21:30

Feb
3
awarded  Enlightened
Jan
31
answered CDF player Inputfield list
Jan
31
comment How to display detailed output in Mathematica
In jest I would propose you use $Post = Row[{"Much more detailed: ", #}] & which will now have for instance 2+3 output: Much more detailed: 5. However i think you should provide a much more detailed definition of what you want when you say "detailed".
Jan
30
awarded  Enlightened
Jan
30
revised Make the code shorter for solving Fizz buzz
added 6 characters in body
Jan
30
answered Make the code shorter for solving Fizz buzz
Jan
30
comment Make the code shorter for solving Fizz buzz
@chyanog As rm -rf linked, code-golf challenges are generally frowned upon in this forum. I do however think you could make a slight edit of your question and instead of asking for specific versions of fizz-buzz ask for general techniques that can be applied within Mathematica in code-golf settings. I personally would like to see such a question answered.
Jan
30
answered Can this Part shortcut key be made to work with version 9?
Jan
30
comment Loading graphics consumes execution time
@Anuk Sounds like you are having trouble correctly displaying your elements using Grid, and have gotten around this by the hack of pushing everything through GraphicsGrid instead. You should work on getting it to work properly in Grid. You could post a question with the problems you where facing there.
Jan
28
answered Frequency of elements in a list (merging tally data)
Jan
28
answered Creating Recursive Sequences
Jan
27
comment Comparing LetL and Module efficiency
@LeonidShifrin You seem to be very biased. If I was going to do an "honest" comparison in that respect, the let'macro should really have it's runtime added making it the worst possible scoping construct. It's alright because it does it's expansion at define time, I just added a better example of how to expand the scopes at run-time, in fact I would argue the optimal scoping structure you can use during the definition. Also I would add comparing Apples and oranges seems fine when you are talking about differneces in fruits. Here scoping levels.
Jan
27
comment Comparing LetL and Module efficiency
The topic of this question was efficiency in scoping. And the most efficient scoping in the example case arguably is as shown to scope outside the definition. While true that this is somewhat differently themed then just using better nested scopes, it's not outside the theme of the question.
Jan
27
comment Comparing LetL and Module efficiency
@LeonidShifrin My own scoping macro currently does this optimization, so I don't think it's that unfair to compare performance. It's really the best way to order the scopes if you are doing definition time optimization, which is also what is typically done in the letmacro. And "completely different area" is kind of rough remembering that it's just a case of moving the lhs two levels into the definition, other then that the code is practically identical.
Jan
27
answered Comparing LetL and Module efficiency
Jan
25
awarded  Nice Answer
Jan
25
comment Why is Mathematica's expansion of expressions with square roots so slow?
@AlbertRetey At the time of writing of this answer OP did not include the information needed to realize that he was in fact comparing two analytically solutions. As such both me and belisarius belived it was a case of comparing numerical to analytical timings, which is often the case when people observer unexpected slow code.
Jan
25
comment Why is Mathematica's expansion of expressions with square roots so slow?
@AlbertRetey I updated the timing. And indeed, I would expect that Maple is just doing it iteratively while Mathematica evaluates each possible sequence. I expect it's a case where complexity analysis dictates the suboptimal algorithm for this case. I think the Maple style expansion will worst case get 5^O(n) terms that can then be collected, while Mathematica already has all the trival terms collected, and therefore only evaluates around 5000 terms. However, since the iterative approach can quite effectively reduce the number of terms, it's nowhere near the upper limit for this example.
Jan
25
revised Why is Mathematica's expansion of expressions with square roots so slow?
added 3 characters in body
Jan
25
revised Why is Mathematica's expansion of expressions with square roots so slow?
deleted 1 characters in body