Reputation
14,157
Next privilege 15,000 Rep.
Protect questions
Badges
1 33 75
Impact
~150k people reached

Nov
14
answered Function behaves differently inside a package than outside
Nov
14
comment How to take matrix elements as input to another matrix or loop?
Your choice of x^2 for myFunc makes these timings a little misleading. You should try a function that isn't already listable like, for example, myFunc[x_] := Total[Range[x]]. It is worth looking at TracePrint of your Replacement example to see why this matters.
Nov
14
comment How to take matrix elements as input to another matrix or loop?
Yes, the {2} is the levelspec. I recommend using Map[f, Array[Subscript[x, ##] &, {5, 5}], lspec] with different lspecs to see what this does.
Nov
14
answered How to take matrix elements as input to another matrix or loop?
Nov
13
comment How do I create a histogram out of this datastructure: x[i] = value_i?
There shouldn't be any unintended consequences to this approach.
Nov
13
comment How do I create a histogram out of this datastructure: x[i] = value_i?
@Mr.Wizard no, not in practice. But I thought using First was slightly more instructive for what DownValues actually do.
Nov
13
comment How do I create a histogram out of this datastructure: x[i] = value_i?
The following is worth reading. reference.wolfram.com/mathematica/tutorial/…
Nov
13
comment How do I create a histogram out of this datastructure: x[i] = value_i?
DownValues uses HoldPattern so that it remains unevaluated. ReleaseHold does precisely what it says and releases the HoldPattern (and other types of held expressions).
Nov
13
answered How do I create a histogram out of this datastructure: x[i] = value_i?
Nov
11
answered Determining the local extrema of discrete data
Nov
8
answered Overlay of pdf using PairedHistogram in Mathematica
Oct
29
comment How to find local minima of a multivariate function with singularity?
Because over the machine reals that NMinmize will try there is no instance that gives -Infinity.
Oct
29
revised How to find local minima of a multivariate function with singularity?
deleted 9 characters in body
Oct
29
comment How to find local minima of a multivariate function with singularity?
You should probably reformulate your last follow up question as a new question.
Oct
29
comment How to find local minima of a multivariate function with singularity?
Because your cost function contains Log[h[...]] and Log[1-h[...]] If h[...] gives 0 or 1 one of the logs would return Indeterminate inside NMinimize since -Infinity is not a real number.
Oct
29
revised How to find local minima of a multivariate function with singularity?
added 429 characters in body
Oct
27
revised How to find local minima of a multivariate function with singularity?
added 255 characters in body
Oct
27
answered How to find local minima of a multivariate function with singularity?
Oct
10
awarded  Nice Answer
Oct
10
revised How to find the variance under the assumption that x follows some probability distribution
added 831 characters in body