Reputation
Next tag badge:
171/100 score
19/20 answers
Badges
2 69 139
Newest
 Yearling
Impact
~158k people reached

Feb
6
reviewed Leave Open intermediate steps of simplification of algebraic expression without evaluation
Feb
6
reviewed Close How to solve for the eigenvalue in matrix?
Feb
3
reviewed Leave Closed Using functions in Solve
Jan
29
answered Abbreviated expressions in StringCases?
Jan
24
reviewed Close LogLinearPlot issues
Jan
24
reviewed Close How to plot dy/dx and y together for a differential equation?
Jan
24
revised Why is a longer pattern matched rather than a short pattern?
added 134 characters in body
Jan
24
comment Why is a longer pattern matched rather than a short pattern?
+1 This analysis is correct for ReplaceList which only visits the outermost level. ReplaceAll descends into subparts, so for it there are three valid possibilities (p[a.b, c.d], p[a, b.c.d] . b, a . p[b, c.d.a]). Only one (the first, being the "outermost leftmost") is returned because these possibilities overlap and ReplaceAll only visits any given part once.
Jan
24
answered Why is a longer pattern matched rather than a short pattern?
Jan
18
awarded  Yearling
Jan
15
comment Average dataset with many repetitions?
@MikeHoneychurch ilian of WRI has acknowledged the singleton list issue on another comment thread.
Jan
15
comment Average dataset with many repetitions?
@MikeHoneychurch Mean alone triggers this bug. WRI claims it was broken in 10.3.0 and fixed in 10.3.1, but on Windows I still see the wrong result in 10.3.1 when Mean is applied to a list containing a single association (no crash though). Merge@Mean is the workaround.
Jan
15
comment Aggregation queries on lists of associations in 10.3
@ilian I see you marked this issue as fixed in 10.3.1, but I still see the wrong result for Mean[{<|"a" -> 1, "b" -> 2|>}] in that release but not in 10.2 or earlier (using Windows 7 x64).
Jan
13
revised How to get sub property from json result?
fixed a typo
Jan
13
answered How to get sub property from json result?
Jan
12
comment Get the last line from each of a large number of files, transform them, and write all results to a single new file
@alancalvitti I am not aware of any higher-level functionality for such variable-length record extraction in stream-based fashion. Perhaps Leonid's new (as yet unofficial) streaming extensions would be useful when implementing such a thing?
Jan
7
comment Append fixed value to random selection of list
I don't know your full context, but if you are using f := ..., then I'd probably recommend that you use f[] := ... instead. This is a matter to style rather than necessity. I'd be suprised, for example, if {f, f} returned a list with different elements. But getting different elements from {f[], f[]} is unsurprising. Again, this is just a question of convention rather than a language requirement. You might also consider something like f[n_] := RandomChoice[fns][n].
Jan
7
comment Append fixed value to random selection of list
The Cases expression transforms each element of the Hold expression into a function. It is at that point that each list variable gets notionally moved out of the Hold and into a Function. A function definition is also a held context, so the list variable is still not evaluated. It is only when the function is called that the list variable finally appears in a context in which it is evaluated.
Jan
7
revised Append fixed value to random selection of list
added 281 characters in body
Jan
7
answered Append fixed value to random selection of list