58,619 reputation
18148273
bio website
location
age
visits member for 2 years, 3 months
seen 24 mins ago

Apr
4
revised How to restrict the mouse cursor to stay within a box?
added 50 characters in body
Apr
4
revised How to restrict the mouse cursor to stay within a box?
rolled back to a previous revision
Apr
4
awarded  list-manipulation
Apr
3
reviewed Approve suggested edit on Distance between two line segments in 3-space
Apr
3
comment How to fix this memory leak
@LeonidShifrin No problem :) Also, thanks for noticing the issue with the attributes. I paid no attention to the original code! :D
Apr
3
revised How to fix this memory leak
edited body
Apr
3
comment How to fix this memory leak
@LeonidShifrin Thanks, I've changed it, but why do you say it won't work (it worked in my test)? Isn't the Temporary attribute only necessary for automatic garbage collection? If I force erase all definitions, is it not the same?
Apr
3
answered How to fix this memory leak
Apr
3
comment Accessing list elements by name
@DavidCarraher With Dispatch, it comes very close to Association's timings. However, I like the cleanliness of using Association, especially with how the code reads. See also this answer and Leonid's comments under it for the advantages of Association.
Apr
3
comment Caching RecursionLimit::reclim error
The number is approximately 1024 ($RecursionLimit) + 100 (your condition on a). Change the condition and the number will change along with it.
Apr
3
answered Accessing list elements by name
Apr
2
comment Defining conditional Notation rules
@LeonidShifrin No problem! I'll take care of the crumbs here and there to free you some time to finish that book of yours ;)
Apr
2
comment Defining conditional Notation rules
Leonid, I get your answer but I think the cause for confusion is because @DanielMahler is probably using the 2D subscript notation whereas makeExpression handles the fullform. Daniel, could you change the definition of sub to ClearAll[sub]; sub[f_] := With[{boxed = MakeBoxes[f]}, makeExpression[SubscriptBox[boxed, arg_], form_] := MakeExpression[RowBox[{boxed, "[", arg, "]"}], form]]; and see if it does what you want?
Apr
1
comment Display a labeled multigraph
Related: mathematica.stackexchange.com/q/6282/5
Apr
1
comment What is the mathematical meaning behind D[f]?
That's a very good and compelling reasoning for the output it provides... In my earlier comment, I didn't say undefined syntax, but invalid syntax (I can see how "invalid" is incorrect terminology as well... I should've said "undocumented"). I would consider this to either be a documentation oversight (if this use is intended) or speculative... the definition might as well be D[f_] := f as I had said in my comment :)
Mar
31
answered Image processing: extracting ordered contour
Mar
31
revised Image processing: extracting ordered contour
added 196 characters in body; edited tags
Mar
31
comment Image processing: extracting ordered contour
Also, in future, please include the extracted list of points in the question (I've added it this time). It's less work for someone who wants to answer this question than to have to read the other one, grab the data and use Simon's answer...
Mar
31
comment Image processing: extracting ordered contour
Maybe a TSP? Might not be fully robust, but should probably take you most of the way...
Mar
31
comment How to input pure function to package?
@gKirkland Sure. Change the line to f[t] = func[t]; and then pass a pure function such as Cos[Pi #]Sin[0.5 #]& or # + #^3& to your function.